Author: glen Date: Sat Jan 19 20:47:58 2008 New Revision: 9184 Modified: geninitrd/trunk/functions geninitrd/trunk/geninitrd Log: - nfsroot patch from wolverine
Modified: geninitrd/trunk/functions ============================================================================== --- geninitrd/trunk/functions (original) +++ geninitrd/trunk/functions Sat Jan 19 20:47:58 2008 @@ -73,6 +73,11 @@ ;; esac + if [ "$rootFs" = "nfs" ]; then + rootdev="/dev/nfs" + return 0 + fi + if [ ! -r "$rootdev" ]; then echo >&2 "$function: can't find real device for $rootdev" return 1 Modified: geninitrd/trunk/geninitrd ============================================================================== --- geninitrd/trunk/geninitrd (original) +++ geninitrd/trunk/geninitrd Sat Jan 19 20:47:58 2008 @@ -1953,7 +1953,11 @@ 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' _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit