[readonly/geninitrd: 545/1068] - nfsroot patch from wolverine
draenog
draenog at pld-linux.org
Sat Nov 2 19:58:13 CET 2013
commit 6d2c63edef26c2586f4f6b89145ee4552b40f9b5
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sat Jan 19 19:47:58 2008 +0000
- nfsroot patch from wolverine
svn-id: @9184
functions | 5 +++++
geninitrd | 6 +++++-
2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/functions b/functions
index 0db38e6..14ccefc 100644
--- a/functions
+++ b/functions
@@ -73,6 +73,11 @@ find_root() {
;;
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
diff --git a/geninitrd b/geninitrd
index cdc8a01..476f349 100755
--- 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'
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090
More information about the pld-cvs-commit
mailing list