]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
91zipl: Store commandline correctly
authorHannes Reinecke <hare@suse.de>
Thu, 10 Jul 2014 12:55:50 +0000 (14:55 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Thu, 11 Jan 2018 10:12:39 +0000 (11:12 +0100)
The 'rd.zipl' command was only printed and never stored in the
initramfs itself.

Signed-off-by: Hannes Reinecke <hare@suse.de>
modules.d/91zipl/module-setup.sh

index 07a2e6bd6c57fb8b738dea24525f19ce29154872..c65b9b1c1c653dfcfe9bfe2680fa9e8a4c510b2b 100755 (executable)
@@ -42,7 +42,7 @@ install() {
     if [[ $hostonly_cmdline == "yes" ]] ; then
         local _zipl=$(cmdline)
 
-        [[ $_zipl ]] && printf "%s\n" "$_zipl"
+        [[ $_zipl ]] && printf "%s\n" "$_zipl" > "${initdir}/etc/cmdline.d/91zipl.conf"
     fi
     dracut_need_initqueue
 }