From: Mike Gilbert Date: Fri, 23 Jul 2021 18:35:07 +0000 (-0400) Subject: fix(base): do not quote $initargs for switch_root X-Git-Tag: 056~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f649cd10b2e920e9d65c532db9b9f89a7370ad99;p=thirdparty%2Fdracut.git 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 --- diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh index 978adb6ff..ab62bb448 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