diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh index 87bc2785f907..b51779cfb957 100644 --- a/nixos/modules/installer/tools/nixos-install.sh +++ b/nixos/modules/installer/tools/nixos-install.sh @@ -114,7 +114,7 @@ if [[ -z $noChannelCopy ]]; then fi # Mark the target as a NixOS installation, otherwise switch-to-configuration will chicken out. -mkdir -m 0755 "$mountPoint/etc" +mkdir -m 0755 -p "$mountPoint/etc" touch "$mountPoint/etc/NIXOS" # Switch to the new system configuration. This will install Grub with