]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
rootfs-block: suppress spurious printing of rootflags
authorJonas Witschel <diabonas@gmx.de>
Sat, 31 Aug 2019 15:48:05 +0000 (17:48 +0200)
committerDaniel Molkentin <daniel@molkentin.de>
Tue, 3 Sep 2019 14:49:05 +0000 (16:49 +0200)
getarg prints the value so it inadvertently shows up in the dracut
output.

modules.d/95rootfs-block/mount-root.sh

index 924393bd9b932e2c4bdfc5c850c7c88a6506a5ad..0eddbcd532a82a587dcf646de81d432ea112dd71 100755 (executable)
@@ -74,7 +74,7 @@ mount_root() {
 
     rootopts=
     if getargbool 1 rd.fstab -d -n rd_NO_FSTAB \
-        && ! getarg rootflags \
+        && ! getarg rootflags >/dev/null \
         && [ -f "$NEWROOT/etc/fstab" ] \
         && ! [ -L "$NEWROOT/etc/fstab" ]; then
         # if $NEWROOT/etc/fstab contains special mount options for