From: Thorsten Behrens Date: Thu, 11 Dec 2014 14:46:29 +0000 (+0100) Subject: Fix non-export of journal dev boot options. X-Git-Tag: 041~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=486030575d3573237e776a630b3df0139c11fab3;p=thirdparty%2Fdracut.git Fix non-export of journal dev boot options. cmdline_journal does not contain linefeeds anymore, so read silently skipped it altogether. Signed-off-by: Thorsten Behrens Signed-off-by: Thomas Renninger --- diff --git a/modules.d/95rootfs-block/module-setup.sh b/modules.d/95rootfs-block/module-setup.sh index 258b32f8e..c2f71bba7 100755 --- a/modules.d/95rootfs-block/module-setup.sh +++ b/modules.d/95rootfs-block/module-setup.sh @@ -43,9 +43,8 @@ cmdline() { # called by dracut install() { if [[ $hostonly_cmdline == "yes" ]]; then - cmdline_journal | while read journaldev; do - [[ $journaldev ]] && printf "%s\n" "$journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf" - done + local _journaldev=$(cmdline_journal) + [[ $_journaldev ]] && printf "%s\n" "$_journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf" fi inst_multiple umount