# Copyright 2006-2006 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 13 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org> gen_initramfs.sh,
+ generic/initrd.defaults, generic/initrd.scripts, +generic/udhcpc.scripts,
+ x86/busy-config, x86/modules_load:
+ Added patch for udhcp support. Patch by Stefan Nickl
+ <snickl@snickl.freaks.de> and submitted to bug #145115.
+
13 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org> generic/linuxrc:
Allow root= for initramfs, instead of only real_root= to specify the root
volume. Patch by Salah Coronya <salahx@yahoo.com> from bug #142606.
rm -rf "${TEMP}/initramfs-busybox-temp" > /dev/null
fi
mkdir -p "${TEMP}/initramfs-busybox-temp/bin/"
+
+ cp "${GK_SHARE}/generic/udhcpc.scripts" ${TEMP}/initramfs-busybox-temp/bin/
+ chmod +x "${TEMP}/initramfs-busybox-temp/bin/udhcpc.scripts"
cp "${BUSYBOX_BINCACHE}" "${TEMP}/initramfs-busybox-temp/bin/busybox.bz2" ||
gen_die 'Could not copy busybox from bincache!'
bunzip2 "${TEMP}/initramfs-busybox-temp/bin/busybox.bz2" ||
# Only sections that are in by default or those that
# are not module groups need to be defined here...
HWOPTS='usb firewire keymap cache evms2 sata lvm2 dmraid slowusb fs'
-MY_HWOPTS='usb firewire sata dmraid fs'
+MY_HWOPTS='usb firewire sata dmraid fs net'
}
findnfsmount() {
- if [ "${IP}" != '' ]
+
+ if [ "${IP}" != '' ] || busybox udhcpc -R rootpath -n -s /bin/udhcpc.scripts
then
+ [ -e /rootpath ] && NFSROOT=`cat /rootpath`
+
if [ "${NFSROOT}" = '' ]
then
# Obtain NFSIP
--- /dev/null
+#!/bin/sh
+
+case ${1} in
+ bound)
+ [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
+ [ -n "$subnet" ] && NETMASK="netmask $subnet"
+ [ -n "$rootpath" ] && echo "$rootpath" > /rootpath
+ #[ -n "$router" ] && echo "$router" > /router
+ #[ -n "$dns" ] && echo "$dns" > /dns
+
+ busybox ifconfig $interface $ip $BROADCAST $NETMASK
+ ;;
+ deconfig)
+ busybox ifconfig $interface 0.0.0.0
+ ;;
+esac
+
# CONFIG_FTPPUT is not set
# CONFIG_HOSTNAME is not set
# CONFIG_HTTPD is not set
-# CONFIG_IFCONFIG is not set
+CONFIG_IFCONFIG=yes
# CONFIG_IFUPDOWN is not set
# CONFIG_INETD is not set
# CONFIG_IP is not set
# CONFIG_NC is not set
# CONFIG_NETSTAT is not set
# CONFIG_NSLOOKUP is not set
-# CONFIG_PING is not set
+CONFIG_PING=y
# CONFIG_ROUTE is not set
# CONFIG_TELNET is not set
# CONFIG_TELNETD is not set
# udhcp Server/Client
#
# CONFIG_UDHCPD is not set
-# CONFIG_UDHCPC is not set
+CONFIG_UDHCPC=y
#
# Process Utilities
sx8 aacraid megaraid_mbox megaraid_mm megaraid_sas \
lpfc scsi_transport_fc"
+MODULES_NET="e1000"
MODULES_FIREWIRE="ieee1394 ohci1394 sbp2"
MODULES_ATARAID="ataraid pdcraid hptraid"
MODULES_PCMCIA="pcmcia_core yenta_socket i82365 \