- -mkdir -p /install/initrd/{dev,etc,mnt,root,lib/modules/$(KVER)-ipfire/kernel/drivers,cdrom,dev,harddisk,proc,tmp,usr/share/terminfo/l,var/run,sys} && \
+ -mkdir -p /install/initrd/{dev,etc,mnt,root,lib/modules/$(KVER)-ipfire/kernel/drivers,cdrom,dev,harddisk,proc,tmp,usr/share/terminfo/l,var/run,sys}
+ cd /install/initrd && lzma -d -c /boot/ipfirerd-$(KVER).img | cpio -i
+
+ # 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
+