summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-09-02 03:13:30 +0300
committerGitHub <noreply@github.com>2023-09-02 03:13:30 +0300
commit26b11c54d8e1f83bcd9527c0af0f414fe303e207 (patch)
tree3e53170e060ddeeb7a1ddfe49ec0a7ff70085910 /nixos/modules
parent964677148a943771ea5edb1be3f9d2b1c4a0c821 (diff)
parent103bb49f84536d8fedc2b88a8ad81ff59342d400 (diff)
downloadnixpkgs-26b11c54d8e1f83bcd9527c0af0f414fe303e207.tar
nixpkgs-26b11c54d8e1f83bcd9527c0af0f414fe303e207.tar.gz
nixpkgs-26b11c54d8e1f83bcd9527c0af0f414fe303e207.tar.bz2
nixpkgs-26b11c54d8e1f83bcd9527c0af0f414fe303e207.tar.lz
nixpkgs-26b11c54d8e1f83bcd9527c0af0f414fe303e207.tar.xz
nixpkgs-26b11c54d8e1f83bcd9527c0af0f414fe303e207.tar.zst
nixpkgs-26b11c54d8e1f83bcd9527c0af0f414fe303e207.zip
Merge pull request #247153 from Artturin/fixwarning1
Diffstat (limited to 'nixos/modules')
-rwxr-xr-xnixos/modules/system/boot/stage-2-init.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh
index f9a2084ea9e..c0af29e3b99 100755
--- a/nixos/modules/system/boot/stage-2-init.sh
+++ b/nixos/modules/system/boot/stage-2-init.sh
@@ -104,7 +104,10 @@ fi
 
 
 # Required by the activation script
-install -m 0755 -d /etc /etc/nixos
+install -m 0755 -d /etc
+if [ -d "/etc/nixos" ]; then
+    install -m 0755 -d /etc/nixos
+fi
 install -m 01777 -d /tmp