Merge pull request #236744 from l0b0/shells-environment-remove-redundant-p-flag

nixos/modules: Split recursive mkdir with permissions
This commit is contained in:
Peder Bergebakken Sundt 2024-01-21 20:16:14 +01:00 committed by GitHub
commit 3747401ffe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -214,7 +214,8 @@ in
''
# Create the required /bin/sh symlink; otherwise lots of things
# (notably the system() function) won't work.
mkdir -m 0755 -p /bin
mkdir -p /bin
chmod 0755 /bin
ln -sfn "${cfg.binsh}" /bin/.sh.tmp
mv /bin/.sh.tmp /bin/sh # atomically replace /bin/sh
'';