- cp -vf $(DIR_SRC)/src/dracut/dracut.conf /etc/dracut.conf.d/
-
- rm -rf /usr/share/dracut/modules.d/*{dash,fips,redhat-i18n,rpmversion,network,ifcfg,plymouth,btrfs,crypt,dm,dmraid,dmsquash-live,lvm,mdraid,multipath,dasd,dasd_mod,fcoe,iscsi,nbd,nfs,resume,uswsusp,zfcp,znet,selinux}
-
- sed -e "s/--resolve-names=never//g" -i \
- /usr/share/dracut/modules.d/99base/init
-
- # Build initramdisk
- # Strip all binaries in that initrd, because no debugging code is
- # needed.
-
-ifeq "$(MACHINE_TYPE)" "arm"
- # kirkwood kernel
- /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER)-kirkwood.img $(KVER)-ipfire-kirkwood
- cd /boot && mkimage -A arm -T ramdisk -C lzma -d ipfirerd-$(KVER)-kirkwood.img uInit-ipfire-kirkwood
- # omap kernel
- /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER)-omap.img $(KVER)-ipfire-omap
- cd /boot && mkimage -A arm -T ramdisk -C lzma -d ipfirerd-$(KVER)-omap.img uInit-ipfire-omap
-else
- /sbin/dracut --force --verbose --strip /boot/ipfirerd-$(KVER).img $(KVER)-ipfire
-endif