xbps-mklive: update to 0.2.0.
* Build the initramfs compressed with lzma. * Remove initramfs and kernel image from rootfs. This saves ~25MB in the final ISO image. --HG-- extra : convert_revision : c3457e54f575622d17d94e0d296a72327ad88159
This commit is contained in:
parent
00cfa9ee5f
commit
d337d0f59b
|
@ -175,6 +175,9 @@ info_msg "Creating /etc/motd..."
|
||||||
write_etc_motd
|
write_etc_motd
|
||||||
|
|
||||||
info_msg "Rebuilding and copying initramfs..."
|
info_msg "Rebuilding and copying initramfs..."
|
||||||
|
# Set lzma compression for the initramfs, to save space.
|
||||||
|
sed -i -e "s|COMPRESSION_TYPE=gzip|COMPRESSION_TYPE=lzma|" \
|
||||||
|
$TEMP_ROOTFS/etc/initramfs-tools/initramfs.conf
|
||||||
xbps-bin -r $TEMP_ROOTFS -f reconfigure kernel
|
xbps-bin -r $TEMP_ROOTFS -f reconfigure kernel
|
||||||
[ $? -ne 0 ] && error_out $?
|
[ $? -ne 0 ] && error_out $?
|
||||||
cp -f "$TEMP_ROOTFS/boot/initrd.img-${kernel_ver}" \
|
cp -f "$TEMP_ROOTFS/boot/initrd.img-${kernel_ver}" \
|
||||||
|
@ -185,6 +188,10 @@ info_msg "Copying kernel binary..."
|
||||||
cp -f "$TEMP_ROOTFS/boot/vmlinuz-${kernel_ver}" \
|
cp -f "$TEMP_ROOTFS/boot/vmlinuz-${kernel_ver}" \
|
||||||
"$BUILD_TMPDIR/casper/vmlinuz" || error_out $?
|
"$BUILD_TMPDIR/casper/vmlinuz" || error_out $?
|
||||||
|
|
||||||
|
info_msg "Cleaning up rootfs..."
|
||||||
|
rm -f $TEMP_ROOTFS/boot/initrd*
|
||||||
|
rm -f $TEMP_ROOTFS/boot/vmlinuz*
|
||||||
|
|
||||||
info_msg "Building squashed root filesystem..."
|
info_msg "Building squashed root filesystem..."
|
||||||
mksquashfs "$TEMP_ROOTFS" "$BUILD_TMPDIR/casper/filesystem.squashfs" \
|
mksquashfs "$TEMP_ROOTFS" "$BUILD_TMPDIR/casper/filesystem.squashfs" \
|
||||||
-root-becomes / && \
|
-root-becomes / && \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-mklive'
|
# Template file for 'xbps-mklive'
|
||||||
pkgname=xbps-mklive
|
pkgname=xbps-mklive
|
||||||
version=0.1.6
|
version=0.2.0
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="XBPS Live image maker"
|
short_desc="XBPS Live image maker"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Reference in New Issue