Avoid trying to mount the root device if it is an NFS device.
Addresses Debian Bug #310428
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/debian/initrd.ext3-add-journal b/debian/initrd.ext3-add-journal
index 557fc18..4def7b1 100644
--- a/debian/initrd.ext3-add-journal
+++ b/debian/initrd.ext3-add-journal
@@ -7,7 +7,7 @@
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`