]> git.pld-linux.org Git - projects/geninitrd.git/blobdiff - geninitrd
- nfsroot patch from wolverine
[projects/geninitrd.git] / geninitrd
index cdc8a01c4358147edebd54e6637c51367271bb7d..476f349c02546d6d9eee3b380adf7eea0e1b9d9b 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1953,7 +1953,11 @@ fi
 
 if [ "$INITRDFS" = "initramfs" ]; then
        inst_d /newroot
-       [ ! -e "$DESTDIR/$rootdev" ] && inst $rootdev /dev
+       if [ "$rootdev" = "/dev/nfs" ]; then
+               echo "rootfs on NFS root=/dev/nfs"
+       else
+               [ ! -e "$DESTDIR/$rootdev" ] && inst $rootdev /dev
+       fi
        # Parsing root parameter
        # We support passing root as hda3 /dev/hda3 0303 0x0303 and 303
        add_linuxrc <<-'EOF'
This page took 0.031862 seconds and 4 git commands to generate.