From cfb9d5883389d24a3d1bffbcd1aae5d75325f8a0 Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Mon, 19 Aug 2024 08:30:15 +0200 Subject: [PATCH] ci: create btrfs outside of repo root 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. --- .github/actions/setup_nix/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup_nix/action.yml b/.github/actions/setup_nix/action.yml index 95a1fe12c7..b55e2d017b 100644 --- a/.github/actions/setup_nix/action.yml +++ b/.github/actions/setup_nix/action.yml @@ -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