Browse Source

rootfs-block: suppress spurious printing of rootflags

getarg prints the value so it inadvertently shows up in the dracut
output.
master
Jonas Witschel 6 years ago committed by Daniel Molkentin
parent
commit
3436067663
  1. 2
      modules.d/95rootfs-block/mount-root.sh

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

@ -74,7 +74,7 @@ mount_root() {


rootopts= rootopts=
if getargbool 1 rd.fstab -d -n rd_NO_FSTAB \ if getargbool 1 rd.fstab -d -n rd_NO_FSTAB \
&& ! getarg rootflags \ && ! getarg rootflags >/dev/null \
&& [ -f "$NEWROOT/etc/fstab" ] \ && [ -f "$NEWROOT/etc/fstab" ] \
&& ! [ -L "$NEWROOT/etc/fstab" ]; then && ! [ -L "$NEWROOT/etc/fstab" ]; then
# if $NEWROOT/etc/fstab contains special mount options for # if $NEWROOT/etc/fstab contains special mount options for

Loading…
Cancel
Save