nixos-remote-pxe: fix mkdir -p not setting permissions if folder already exists

This commit is contained in:
Pogobanane 2023-02-08 16:22:39 +01:00 committed by Jörg Thalheim
parent 74c8547240
commit 1d9ba4c702

View File

@ -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