diff options
author | Mike Gilbert <floppym@gentoo.org> | 2021-07-23 14:35:07 -0400 |
---|---|---|
committer | Jóhann B. Guðmundsson <johannbg@gmail.com> | 2021-08-06 13:52:19 +0000 |
commit | f649cd10b2e920e9d65c532db9b9f89a7370ad99 (patch) | |
tree | 148fbb4f937ac6a5defd139116354c4a5d113a46 | |
parent | cbd85597e3ed6abf64ac17f431da5477eb5aefa0 (diff) | |
download | dracut-f649cd10b2e920e9d65c532db9b9f89a7370ad99.tar.gz |
fix(base): do not quote $initargs for switch_root
We want word splitting to occur so that the arguments are passed
separately, and we don't end up passing an empty string if no arguments
are specified.
Bug: https://bugs.gentoo.org/803548
Fixes: 2fabaaa62dcfd31e593ca45e1374e55adae29d6b
-rwxr-xr-x | modules.d/99base/init.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh index 978adb6f..ab62bb44 100755 --- a/modules.d/99base/init.sh +++ b/modules.d/99base/init.sh @@ -387,7 +387,8 @@ if [ -f /etc/capsdrop ]; then } else unset RD_DEBUG - exec "$SWITCH_ROOT" "$NEWROOT" "$INIT" "$initargs" || { + # shellcheck disable=SC2086 + exec "$SWITCH_ROOT" "$NEWROOT" "$INIT" $initargs || { warn "Something went very badly wrong in the initramfs. Please " warn "file a bug against dracut." emergency_shell |