installer: Change format of initrd from squashfs to cpio.
[people/pmueller/ipfire-2.x.git] / lfs / initrd
index ad8b135..824b40c 100644 (file)
@@ -89,8 +89,11 @@ $(TARGET) :
 
        # Remove binary depmod files
        rm -rf /install/initrd/lib/modules/$(KVER)-ipfire/modules.*.bin
-           
-       mksquashfs /install/initrd /install/images/initrd
+
+       cd /install/initrd && strip --strip-all {,usr/}{,s}bin/* || true
+       cd /install/initrd && strip --strip-debug {,usr/}lib/* || true
+
+       cd /install/initrd && find . | cpio -o -H newc | lzma -9 > /install/images/initrd
        cd /install/initrd && find ./ -ls > $(DIR_INFO)/_build.initrd.log
 
        @$(POSTBUILD)