From: Thomas Renninger Subject: [PATCH 38/42] Fix non-export of journal dev boot options. Date: Thu, 11 Dec 2014 15:46:29 +0100 Message-ID: <1418309193-11208-39-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, Thorsten Behrens From: Thorsten Behrens cmdline_journal does not contain linefeeds anymore, so read silently skipped it altogether. Signed-off-by: Thorsten Behrens Signed-off-by: Thomas Renninger --- modules.d/95rootfs-block/module-setup.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules.d/95rootfs-block/module-setup.sh b/modules.d/95rootfs-block/module-setup.sh index 258b32f..c2f71bb 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 -- 1.8.5.2