--- /etc/mkinitramfs/initramfs.conf 2005-12-24 18:22:39.000000000 +0100 +++ /opt/ltsp/powerpc/etc/mkinitramfs/initramfs.conf 2005-12-29 13:46:26.000000000 +0100 @@ -20,7 +20,7 @@ BOOT=local # -# MODULES: [ most | dep | list ] +# MODULES: [ most | dep | list | noblock ] # # most - Add all framebuffer, acpi, filesystem, and harddrive drivers. # @@ -28,7 +28,9 @@ # # list - Only include modules from the 'additional modules' list # -MODULES=most +# noblock - Same as the most option but supress blockdevice drivers for netboot + +MODULES=noblock # # NFS Section of the config. --- /usr/sbin/mkinitramfs 2005-12-07 17:25:10.000000000 +0100 +++ /opt/ltsp/powerpc/usr/sbin/mkinitramfs 2005-12-29 13:30:21.000000000 +0100 @@ -112,6 +112,10 @@ auto_add_modules fi +if [ "${MODULES}" = "noblock" ]; then + noblock_add_modules +fi + # Have to do each file, because cpio --dereference doesn't recurse down # symlinks. --- /usr/share/initramfs-tools/hook-functions 2005-10-04 05:20:52.000000000 +0200 +++ /opt/ltsp/powerpc/usr/share/initramfs-tools/hook-functions 2005-12-29 13:33:42.000000000 +0100 @@ -155,6 +155,26 @@ } +# Modules for netbooting with nfs root and no block devices +noblock_add_modules() +{ + # base + for x in md raid0 raid1 raid5 raid6 ehci-hcd ohci-hcd uhci-hcd usbhid usb-storage ext2 ext3 isofs jfs nfs reiserfs xfs af_packet dm_mod; do + manual_add_modules ${x} + done + + # Ethernet + for x in 3c59x 8139cp 8139too 8390 b44 bmac bnx2 defxx dl2k e1000 e100 epic100 eql fealnx famachi forcedeth hp100 mace mv643xx_eth natsemi ne2k-pci netconsole ns83820 pcnet32 r8169 s2io sis900 skge slhc starfire sundance sungem sungem_phy sunhme tg3 tlan de2104x de4x5 dmfe tulip winbond-840 xircom_cb xircom_tulip_cb typhon via-rhine via-velocity yellowfin; do + manual_add_modules ${x} + done + + # i2o + for x in i2o_block; do + manual_add_modules ${x} + done + +} + usage() { cat >&2 << EOF