[readonly/geninitrd/devel: 207/334] Make nfs root case minimal + add very important comment.
draenog
draenog at pld-linux.org
Sat Nov 2 19:28:56 CET 2013
commit 51447ab3f38afe250efe49737b097daa168d246c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Jun 6 00:01:12 2004 +0000
Make nfs root case minimal + add very important comment.
svn-id: @4149
geninitrd | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 416c19e..3ee7a14 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1027,11 +1027,10 @@ if is_yes "$USERAIDSTART" && is_yes "$raidfound" ; then
fi
if is_yes "$usenfs" ; then
+ # use root=/dev/ram0 init=/linuxrc when starting kernel or you will
+ # have problems like init(XX) being child process of swapper(1).
[ -n "$verbose" ] && echo "Adding rootfs on NFS support to initrd (dhcp)"
- mkdir "$MNTIMAGE/proc"
mkdir "$MNTIMAGE/newroot"
- mkdir "$MNTIMAGE/newroot/initrd"
- echo "mount -t proc none /proc" >> "$s"
echo "ifconfig lo 127.0.0.1 up" >> "$s"
echo "route add -net 127.0.0.0 netmask 255.0.0.0 lo" >> "$s"
echo "ifconfig eth0 0.0.0.0 up" >> "$s"
@@ -1064,12 +1063,9 @@ else
fi
EOF
chmod 755 "$MNTIMAGE/bin/setdhcp"
- echo "echo 255 > /proc/sys/kernel/real-root-dev" >> "$s"
- echo "umount /proc" >> "$s"
echo "cd /newroot" >> "$s"
echo "pivot_root . initrd" >> "$s"
echo "exec /usr/sbin/chroot . /sbin/init -i < dev/console > dev/console 2>&1" >> "$s"
- echo "echo \"CRITICAL PROBLEM - BOOT FAILED\"" >> "$s"
fi
if is_yes "$uselvm" ; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/398807324938659207036e520c0950a61ef50c11
More information about the pld-cvs-commit
mailing list