From: Hannes Reinecke <[email protected]> When generating the initramfs we should be printing out the generated dracut commandline used for booting. This will simplify debugging.
Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Thomas Renninger <[email protected]> --- dracut.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dracut.sh b/dracut.sh index 4590f79..9a19b43 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1576,6 +1576,16 @@ if ! ( echo $PARMS_TO_STORE > $initdir/lib/dracut/build-parameter.txt ); then exit 1 fi +if [[ $hostonly_cmdline ]] ; then + if [ -d $initdir/etc/cmdline.d ];then + dinfo "Stored kernel commandline:" + for conf in $initdir/etc/cmdline.d/*.conf ; do + dinfo "$(< $conf)" + done + else + dinfo "No dracut internal kernel commandline stored in initrd" + fi +fi rm -f -- "$outfile" dinfo "*** Creating image file ***" -- 1.8.5.2 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
