]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Avoid trying to mount the root device if it is an NFS device.
authorTheodore Ts'o <tytso@mit.edu>
Sun, 11 Dec 2005 03:57:05 +0000 (22:57 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 11 Dec 2005 03:57:05 +0000 (22:57 -0500)
Addresses Debian Bug #310428

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian/initrd.ext3-add-journal

index 557fc18f23a097ece6988a681d80dd6d8a52f350..4def7b18fd1c2e563eac2324b8bd79907f1012d9 100644 (file)
@@ -7,7 +7,7 @@ mount -nt proc proc proc
 rootdev=$(cat proc/sys/kernel/real-root-dev)
 cmdline=$(cat /proc/cmdline)
 umount -n proc
-if [ $rootdev != 256 ]; then
+if [ $rootdev != 256 -a $rootdev != 255 ]; then
     mount -nt tmpfs tmpfs /dev2
     get_device
     roottype=`/bin/e2initrd_helper -r /dev2/root2`