Whamcloud - gitweb
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 557fc18..4def7b1 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`