add workaround when running in non-nixos environments

This commit is contained in:
Jörg Thalheim 2023-06-07 16:46:52 +02:00
parent a75b9c5163
commit f44ce5b7b8

View File

@ -380,6 +380,9 @@ fi
step Installing NixOS
ssh_ <<SSH
set -efu ${enable_debug}
# when running not in nixos we might miss this directory, but it's needed in the nixos chroot during installation
export PATH=\$PATH:/run/current-system/sw/bin
# needed for installation if initrd-secrets are used
mkdir -p /mnt/tmp
chmod 777 /mnt/tmp