From: Harald Hoyer Date: Thu, 11 Aug 2011 12:23:27 +0000 (+0200) Subject: 95rootfs-block/mount-root.sh: also parse rootopts for "_netdev" X-Git-Tag: 012~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=459bfe02f9884ff5103c4ef865d90d5b73753071;p=thirdparty%2Fdracut.git 95rootfs-block/mount-root.sh: also parse rootopts for "_netdev" --- diff --git a/modules.d/95rootfs-block/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh index cc243d794..2c89431f9 100755 --- a/modules.d/95rootfs-block/mount-root.sh +++ b/modules.d/95rootfs-block/mount-root.sh @@ -104,7 +104,7 @@ mount_root() { # esc_root=$(echo ${root#block:} | sed 's,\\,\\\\,g') # printf '%s %s %s %s 1 1 \n' "$esc_root" "$NEWROOT" "$rootfs" "$rflags" >/etc/fstab - if [ -z "$fastboot" -a "$READONLY" != "yes" ] && ! strstr "${rflags}" _netdev; then + if [ -z "$fastboot" -a "$READONLY" != "yes" ] && ! strstr "${rflags},${rootopts}" _netdev; then fsck_single "${root#block:}" "$rootfs" "$fsckoptions" _ret=$? [ $_ret -ne 255 ] && echo $_ret >/run/initramfs/root-fsck