From: Thomas Renninger Subject: [PATCH 16/42] Print stored dracut commandline during initramfs build Date: Thu, 11 Dec 2014 15:46:07 +0100 Message-ID: <1418309193-11208-17-git-send-email-trenn@suse.de> References: <1418309193-11208-1-git-send-email-trenn@suse.de> Return-path: In-Reply-To: <1418309193-11208-1-git-send-email-trenn-l3A5Bk7waGM@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, trenn-l3A5Bk7waGM@public.gmane.org, Hannes Reinecke From: Hannes Reinecke 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 Signed-off-by: Thomas Renninger --- dracut.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dracut.sh b/dracut.sh index a542f33..cda7955 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1584,6 +1584,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