X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Finitrd;h=740364438e1047af763a07bffb2473dea55b3655;hb=cc24c14bfe52558aceb4489c8ef7a94fbe79edb0;hp=cf2dc3f475845d43c55da572518df2eb48c0b264;hpb=528f824cfbb0e8bed7e56e9ebf4d2624ac27eefc;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/lfs/initrd b/lfs/initrd index cf2dc3f47..740364438 100644 --- a/lfs/initrd +++ b/lfs/initrd @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2010 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -30,6 +30,8 @@ THISAPP = initrd DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) +SUP_ARCH = i586 + ############################################################################### # Top-level Rules ############################################################################### @@ -56,6 +58,10 @@ $(TARGET) : # Copy Files packages for installer find $(DIR_SRC)/config/rootfiles/installer/* -maxdepth 1 | xargs cat | grep -v "^#" > /tmp/ROOTFILES + + # Patch Kernel Version to rootfiles + sed -e "s/KVER/$(KVER)/g" -i /tmp/ROOTFILES + -cd / && cpio -d -p /install/initrd < /tmp/ROOTFILES cd /install/initrd/etc && rm -f fstab @@ -65,17 +71,24 @@ $(TARGET) : cd /install/initrd/ && patch -Np0 < $(DIR_SRC)/src/patches/dracut-init_start_ipfireinstaller.patch + # Hide udev messages + sed -i -e "s|err|none|g" /install/initrd/etc/udev/udev.conf + # make new dependencies depmod -a -F /boot/System.map-$(KVER)-ipfire $(KVER)-ipfire -mkdir -p /install/{images,mnt} rm -rf /install/mnt/* - cp -aR /install/initrd/* /install/mnt - + #Build Module deps for installer. + depmod -a -b /install/initrd/ -F /boot/System.map-$(KVER)-ipfire $(KVER)-ipfire # Remove binary depmod files rm -rf /install/initrd/lib/modules/$(KVER)-ipfire/modules.*.bin + #Name service from dhcpcd + cp -f /etc/nsswitch.conf /install/initrd/etc/ + cp -f $(DIR_SRC)/config/initrd/dhcpc/* /install/initrd/var/ipfire/dhcpc/dhcpcd-hooks/ + cd /install/initrd && find . | cpio -o -H newc | lzma > /install/images/initrd cd /install/initrd && find ./ -ls > $(DIR_INFO)/_build.initrd.log