From 34360676635ba4c787a858152d531bc2fdc5e82e Mon Sep 17 00:00:00 2001 From: Jonas Witschel Date: Sat, 31 Aug 2019 17:48:05 +0200 Subject: [PATCH] rootfs-block: suppress spurious printing of rootflags getarg prints the value so it inadvertently shows up in the dracut output. --- modules.d/95rootfs-block/mount-root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/95rootfs-block/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh index 924393bd9..0eddbcd53 100755 --- a/modules.d/95rootfs-block/mount-root.sh +++ b/modules.d/95rootfs-block/mount-root.sh @@ -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 -- 2.47.3