Merge pull request #135 from numtide/non-nixos-quirk

add workaround when running in non-nixos environments
This commit is contained in:
Jörg Thalheim 2023-06-07 19:38:33 +01:00 committed by GitHub
commit ff8fbfb657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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