From 847ea13be390923a7b7cb8766b1ab8e8465a18eb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Feb 2018 19:47:03 +0100 Subject: [PATCH] Doh --- nixos/modules/installer/tools/nixos-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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