We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e5a6df + 0c70c69 commit 97de4d9Copy full SHA for 97de4d9
src/nixos-anywhere.sh
@@ -722,9 +722,12 @@ set -eu ${enableDebug}
722
# when running not in nixos we might miss this directory, but it's needed in the nixos chroot during installation
723
export PATH="\$PATH:/run/current-system/sw/bin"
724
725
-# needed for installation if initrd-secrets are used
726
-mkdir -p /mnt/tmp
727
-chmod 777 /mnt/tmp
+if [ ! -d "/mnt/tmp" ]; then
+ # needed for installation if initrd-secrets are used
+ mkdir -p /mnt/tmp
728
+ chmod 777 /mnt/tmp
729
+fi
730
+
731
if [ ${copyHostKeys-n} = "y" ]; then
732
# NB we copy host keys that are in turn copied by kexec installer.
733
mkdir -m 755 -p /mnt/etc/ssh
0 commit comments