From: Theodore Ts'o Date: Sun, 11 Dec 2005 03:57:05 +0000 (-0500) Subject: Avoid trying to mount the root device if it is an NFS device. X-Git-Tag: E2FSPROGS-1.39-WIP-1210~2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6a35a436c56512326007569deae439c078b686b5;p=tools%2Fe2fsprogs.git Avoid trying to mount the root device if it is an NFS device. Addresses Debian Bug #310428 Signed-off-by: "Theodore Ts'o" --- 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 @@ 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`