#!/bin/sh
-#
+NFS_RCSID='$Revision$ $Date:: $'
+
# geninitrd mod: nfs
# if we should init NFS at boot
# generate initrd fragment
# @access public
initrd_gen_nfs() {
+ if ! is_yes "$have_nfs"; then
+ return
+ fi
+
# use root=/dev/ram0 init=/linuxrc when starting kernel or you will
# have problems like init(XX) being child process of swapper(1).
debug "Adding rootfs on NFS support to initrd (dhcp)"
cd /newroot
pivot_root . initrd
[ -x /sbin/chroot ] && exec /sbin/chroot . /sbin/init -i < dev/console > dev/console 2>&1
- exec /usr/sbin/chroot . /sbin/init -i < dev/console > dev/console 2>&1
EOF
cat <<-'EOF' > "$DESTDIR/bin/setdhcp"
done
fi
+ if [ -n "$hostname" ]; then
+ hostname $hostname
+ fi
+
for o in $CMDLINE; do
case $o in
nfsroot=*)