Skip to content

Commit

Permalink
ci: create btrfs outside of repo root
Browse files Browse the repository at this point in the history
This fixes unexpected files, such as the btrfs image used in CI to be committed into the PR branch, as when no paths are specified, all are added.
  • Loading branch information
msanft committed Aug 19, 2024
1 parent 8ebfe80 commit cfb9d58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup_nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ runs:
shell: bash
run: |
sudo mkdir /nixbld
truncate -s 3G btrfs.img
sudo mkfs.btrfs -f btrfs.img
sudo mount btrfs.img /nixbld
truncate -s 3G /btrfs.img
sudo mkfs.btrfs -f /btrfs.img
sudo mount /btrfs.img /nixbld
sudo mkdir -p /etc/systemd/system/nix-daemon.service.d
echo -e "[Service]\nEnvironment=TMPDIR=/nixbld" | sudo tee /etc/systemd/system/nix-daemon.service.d/btrfs.conf
sudo systemctl daemon-reload
Expand Down

0 comments on commit cfb9d58

Please sign in to comment.