Now use xz format to halve the size of initrd
This commit is contained in:
parent
92876e46d6
commit
cb819dbc11
|
@ -56,12 +56,12 @@ for DISTRO in stretch buster jessie wheezy sid; do # For ALL Debian's version
|
|||
# Make a new initrd
|
||||
mv initrd.gz initrd_orig.gz
|
||||
pushd "${TEMP_DIR}"/mkinitrd/ > /dev/null
|
||||
find . -print0 | cpio -0 -H newc -ov | gzip -c > ../initrd.gz
|
||||
find . | cpio --quiet -o -H newc | xz -c -9 --check=crc32 > ../initrd.xz
|
||||
popd > /dev/null
|
||||
|
||||
# Move it to PXE Debian installer
|
||||
mkdir -p ${TFTP_DIRECTORY}/installer/debian/${DISTRO}/amd64/
|
||||
mv initrd.gz ${TFTP_DIRECTORY}/installer/debian/${DISTRO}/amd64/initrd_firm.gz
|
||||
mv initrd.xz ${TFTP_DIRECTORY}/installer/debian/${DISTRO}/amd64/initrd_firm.xz
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
|
|
Loading…
Reference in New Issue