Skip to content

Commit

Permalink
fix: create keepfile for daemon directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdickinson authored and yajo committed Aug 23, 2022
1 parent ed1e3c5 commit 752ed59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rootfs/usr/share/nix/nix-setup
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ fi
tar -C /var -xpf /usr/share/nix/nix.tar.xz
rm -f /usr/share/nix/nix.tar.xz || true

# Ensure that this directory exists when creating an ostree commit
mkdir -p /var/nix/var/nix/daemon-socket/
touch /var/nix/var/nix/daemon-socket/.keep

# Set up root channels ()
if ! test -e /root/.nix-defexpr && test -e /nix/var/nix/profiles/per-user/root/channels; then
mkdir -p $out/root/.nix-defexpr
Expand Down

0 comments on commit 752ed59

Please sign in to comment.