systemd/initrd: fix shellcheck issues (#340486)

This commit is contained in:
Jörg Thalheim 2024-09-28 09:48:29 +02:00 committed by GitHub
commit 4f06ecd5a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"
'';
};