mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-10-26 16:30:39 +03:00
nixos-remote-pxe: fix mkdir -p not setting permissions if folder already exists
This commit is contained in:
parent
74c8547240
commit
1d9ba4c702
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user