From d337d0f59b02cdacdd3d0af29d614de0f552d037 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 20 Feb 2010 05:53:13 +0100 Subject: [PATCH] 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 --- srcpkgs/xbps-mklive/files/xbps-mklive.sh | 7 +++++++ srcpkgs/xbps-mklive/template | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/xbps-mklive/files/xbps-mklive.sh b/srcpkgs/xbps-mklive/files/xbps-mklive.sh index 4e768c44801..ce86702d6ec 100644 --- a/srcpkgs/xbps-mklive/files/xbps-mklive.sh +++ b/srcpkgs/xbps-mklive/files/xbps-mklive.sh @@ -175,6 +175,9 @@ info_msg "Creating /etc/motd..." write_etc_motd 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 [ $? -ne 0 ] && error_out $? 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}" \ "$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..." mksquashfs "$TEMP_ROOTFS" "$BUILD_TMPDIR/casper/filesystem.squashfs" \ -root-becomes / && \ diff --git a/srcpkgs/xbps-mklive/template b/srcpkgs/xbps-mklive/template index f18491c2a05..8d4af43bc76 100644 --- a/srcpkgs/xbps-mklive/template +++ b/srcpkgs/xbps-mklive/template @@ -1,6 +1,6 @@ # Template file for 'xbps-mklive' pkgname=xbps-mklive -version=0.1.6 +version=0.2.0 build_style=custom-install short_desc="XBPS Live image maker" maintainer="Juan RP "