initrd: add some dependency modules and remove wirless cards.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 May 2014 11:58:41 +0000 (13:58 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 May 2014 11:58:41 +0000 (13:58 +0200)
this fix pxe boot on e1000e some other cards.

lfs/initrd

index fdb3a55..42da9bc 100644 (file)
@@ -64,11 +64,25 @@ $(TARGET) :
 
        -cd / && cpio -d -p /install/initrd < /tmp/ROOTFILES
 
-       # Copy hid and network modules
+       # Copy hid and network modules (and deps)
        cp -aRf /lib/modules/$(KVER)-ipfire/kernel/drivers/hid \
                /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/
        cp -aRf /lib/modules/$(KVER)-ipfire/kernel/drivers/net \
                /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/
+       cp -aRf /lib/modules/$(KVER)-ipfire/kernel/drivers/pcmcia \
+               /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/
+       cp -aRf /lib/modules/$(KVER)-ipfire/kernel/drivers/ssb \
+               /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/
+       cp -aRf /lib/modules/$(KVER)-ipfire/kernel/drivers/uio \
+               /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/
+       cp -aRf /lib/modules/$(KVER)-ipfire/kernel/drivers/ptp \
+               /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/
+       cp -aRf /lib/modules/$(KVER)-ipfire/kernel/drivers/dca \
+               /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/
+       cp -aRf /lib/modules/$(KVER)-ipfire/kernel/drivers/pps \
+               /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/
+       # Remove wireless modules
+       rm -rf /install/initrd/lib/modules/$(KVER)-ipfire/kernel/drivers/net/wireless
 
        cd /install/initrd/etc && rm -f fstab
        cp -aRf $(DIR_SRC)/config/install/* /install/initrd/etc/