mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
systemd/initrd: fix shellcheck issues (#340486)
This commit is contained in:
commit
4f06ecd5a6
@ -523,7 +523,7 @@ in {
|
||||
for o in $(< /proc/cmdline); do
|
||||
case $o in
|
||||
init=*)
|
||||
IFS== read -r -a initParam <<< "$o"
|
||||
IFS="=" read -r -a initParam <<< "$o"
|
||||
closure="''${initParam[1]}"
|
||||
;;
|
||||
esac
|
||||
@ -559,7 +559,7 @@ in {
|
||||
|
||||
# Initialize the system
|
||||
export IN_NIXOS_SYSTEMD_STAGE1=true
|
||||
exec chroot /sysroot $closure/prepare-root
|
||||
exec chroot /sysroot "$closure/prepare-root"
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user