]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Revert "95rootfs-block: Correctly terminate commandline parameter"
authorHarald Hoyer <harald@redhat.com>
Wed, 17 Dec 2014 10:44:18 +0000 (11:44 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 17 Dec 2014 10:44:18 +0000 (11:44 +0100)
This reverts commit 4b6b46bb2aa9e6a72f96501888035f2d38b82266.

$ ./dracut.sh -l --print-cmdline
root=UUID=d5e53483-30bc-4119-8c0c-841d47a2f76brootflags=rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cacherootfstype=btrfs

instead of:

$ ./dracut.sh -l --print-cmdline
 root=UUID=d5e53483-30bc-4119-8c0c-841d47a2f76b
rootflags=rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cache
rootfstype=btrfs

and also

$ make testimage

 *** Store current command line parameters ***
Stored kernel commandline:
root=UUID=d5e53483-30bc-4119-8c0c-841d47a2f76brootflags=rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cacherootfstype=btrfs


dracut.sh
modules.d/95rootfs-block/module-setup.sh

index f384d2dd9632696cc41b19d31fbb6e365d249d95..2eba19ba7a2038307a38a9ae2bbd224423ee7eff 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1299,6 +1299,7 @@ if [[ $print_cmdline ]]; then
         module_cmdline "$_d_mod"
     done
     unset moddir
+    printf "\n"
     exit 0
 fi
 
index 33875f80e3e3f506a3027c33993638f7dd3b466c..81de1773a28aa0b1c0c2bdf918c36874296e6b18 100755 (executable)
@@ -22,7 +22,7 @@ cmdline_journal() {
             fi
 
             if [ -n "$journaldev" ]; then
-                echo "root.journaldev=${journaldev}"
+                printf " root.journaldev=%s" "$journaldev"
             fi
         done
     fi
@@ -32,9 +32,9 @@ cmdline_journal() {
 cmdline_rootfs() {
     local dev=/dev/block/$(find_root_block_device)
     if [ -e $dev ]; then
-        printf "root=%s" "$(shorten_persistent_dev "$(get_persistent_dev "$dev")")"
-        printf "rootflags=%s" "$(find_mp_fsopts /)"
-        printf "rootfstype=%s\n" "$(find_mp_fstype /)"
+        printf " root=%s" "$(shorten_persistent_dev "$(get_persistent_dev "$dev")")"
+        printf " rootflags=%s" "$(find_mp_fsopts /)"
+        printf " rootfstype=%s" "$(find_mp_fstype /)"
     fi
 }