diff options
author | Artturi <Artturin@artturin.com> | 2023-09-02 03:13:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 03:13:30 +0300 |
commit | 26b11c54d8e1f83bcd9527c0af0f414fe303e207 (patch) | |
tree | 3e53170e060ddeeb7a1ddfe49ec0a7ff70085910 /nixos/modules/system/boot | |
parent | 964677148a943771ea5edb1be3f9d2b1c4a0c821 (diff) | |
parent | 103bb49f84536d8fedc2b88a8ad81ff59342d400 (diff) |
Merge pull request #247153 from Artturin/fixwarning1
Diffstat (limited to 'nixos/modules/system/boot')
-rwxr-xr-x | nixos/modules/system/boot/stage-2-init.sh | 5 |
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 f9a2084ea9e8b..c0af29e3b9909 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 |