drop NEWROOT from module-setup.sh
authorWill Woods <wwoods@redhat.com>
Wed, 24 Oct 2012 17:06:11 +0000 (13:06 -0400)
committerHarald Hoyer <harald@redhat.com>
Fri, 14 Dec 2012 08:04:55 +0000 (09:04 +0100)
This was almost certainly copy-pasted from mount-root.sh, but it's not
valid here - dracut doesn't use NEWROOT outside of the initramfs.

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

index 8254289..732aefb 100755 (executable)
@@ -15,7 +15,7 @@ check() {
                 rootopts=$opts
                 break
             fi
-        done < "$NEWROOT/etc/fstab"
+        done < /etc/fstab
 
         [ "$rootfs" = "reiserfs" ] && journaldev=$(fs_get_option $rootopts "jdev")
         [ "$rootfs" = "xfs" ] && journaldev=$(fs_get_option $rootopts "logdev")