Skip to content

Commit

Permalink
nixos-remote-pxe: fix mkdir -p not setting permissions if folder alre…
Browse files Browse the repository at this point in the history
…ady exists
  • Loading branch information
pogobanane authored and Mic92 committed Feb 9, 2023
1 parent 74c8547 commit 1d9ba4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ fi
ssh_ <<SSH
set -efu ${enable_debug}
# needed for installation if initrd-secrets are used
mkdir -m777 -p /mnt/tmp
mkdir -p /mnt/tmp
chmod 777 /mnt/tmp
nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system"
# We will reboot in background so we can cleanly finish the script before the hosts go down.
# This makes integration into scripts easier
Expand Down

0 comments on commit 1d9ba4c

Please sign in to comment.