Blame 0068-Fix-non-export-of-journal-dev-boot-options.patch

Harald Hoyer b94732
From 486030575d3573237e776a630b3df0139c11fab3 Mon Sep 17 00:00:00 2001
Harald Hoyer b94732
From: Thorsten Behrens <tbehrens@suse.com>
Harald Hoyer b94732
Date: Thu, 11 Dec 2014 15:46:29 +0100
Harald Hoyer b94732
Subject: [PATCH] Fix non-export of journal dev boot options.
Harald Hoyer b94732
Harald Hoyer b94732
cmdline_journal does not contain linefeeds anymore, so read
Harald Hoyer b94732
silently skipped it altogether.
Harald Hoyer b94732
Harald Hoyer b94732
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Harald Hoyer b94732
Signed-off-by: Thomas Renninger <trenn@suse.de>
Harald Hoyer b94732
---
Harald Hoyer b94732
 modules.d/95rootfs-block/module-setup.sh | 5 ++---
Harald Hoyer b94732
 1 file changed, 2 insertions(+), 3 deletions(-)
Harald Hoyer b94732
Harald Hoyer b94732
diff --git a/modules.d/95rootfs-block/module-setup.sh b/modules.d/95rootfs-block/module-setup.sh
Harald Hoyer b94732
index 258b32f..c2f71bb 100755
Harald Hoyer b94732
--- a/modules.d/95rootfs-block/module-setup.sh
Harald Hoyer b94732
+++ b/modules.d/95rootfs-block/module-setup.sh
Harald Hoyer b94732
@@ -43,9 +43,8 @@ cmdline() {
Harald Hoyer b94732
 # called by dracut
Harald Hoyer b94732
 install() {
Harald Hoyer b94732
     if [[ $hostonly_cmdline == "yes" ]]; then
Harald Hoyer b94732
-        cmdline_journal | while read journaldev; do
Harald Hoyer b94732
-            [[ $journaldev ]] && printf "%s\n" "$journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf"
Harald Hoyer b94732
-        done
Harald Hoyer b94732
+        local _journaldev=$(cmdline_journal)
Harald Hoyer b94732
+        [[ $_journaldev ]] && printf "%s\n" "$_journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf"
Harald Hoyer b94732
     fi
Harald Hoyer b94732
 
Harald Hoyer b94732
     inst_multiple umount