diff --git a/debian/changelog b/debian/changelog index 03474fd3..f2feff3b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,12 @@ livecd-rootfs (0.97) UNRELEASED; urgency=low + [ Colin Watson ] * Upgrade to debhelper v7. + [ Loïc Minier ] + * Make stripping of vmlinuz from livefs optional for uImage subarches where + we can't use this trick to save space and disable it on armel+dove. + -- Colin Watson Tue, 15 Sep 2009 13:16:34 +0100 livecd-rootfs (0.96) karmic; urgency=low diff --git a/livecd.sh b/livecd.sh index bd5c3526..70cf6f7e 100755 --- a/livecd.sh +++ b/livecd.sh @@ -346,6 +346,16 @@ link_in_boot = $link_in_boot *) echo "Unknown architecture: no kernel."; exit 1;; esac + # this indicates whether or not to keep /boot/vmlinuz; the default is to + # strip it from the livefs as ubiquity >= 1.9.4 copies the kernel from the + # CD root (/casper/vmlinuz) to the target if it doesn't find one on the + # livefs, allowing us to save space; however some subarches use the uImage + # format and wouldn't save any space so the stripping doesn't make sense + STRIP_VMLINUZ=yes + if [ "$TARGETARCH" = "armel" ] && [ "$SUBARCH" = "dove" ]; then + STRIP_VMLINUZ=no + fi + for x in $EXCLUDE; do LIST="$(without_package "$x" "$LIST")" done @@ -509,9 +519,12 @@ ${COMMENT}deb-src ${SECSRCMIRROR} ${STE}-security multiverse # we mv the initramfs, so it's not wasting space on the livefs mv ${ROOT}/boot/initrd.img-"${KVER}" livecd.${FSS}.initrd-"${SUBARCH}" rm -f ${ROOT}/boot/initrd.img-"${KVER}".bak - # ubiquity >= 1.9.4 copies the kernel from the CD root if it doesn't - # find one on the livefs, allowing us to save space - mv ${ROOT}/boot/vmlinu?-"${KVER}" livecd.${FSS}.kernel-"${SUBARCH}" + # whether to strip vmlinuz or not to save space thanks to ubiquity + action="cp" + if [ "$STRIP_VMLINUZ" = "yes" ]; then + action="mv" + fi + $action ${ROOT}/boot/vmlinu?-"${KVER}" livecd.${FSS}.kernel-"${SUBARCH}" if [ "$INITRD_COMPRESSOR" != gz ]; then zcat "livecd.${FSS}.initrd-${SUBARCH}" | "$INITRD_COMPRESSOR" -9c \ > "livecd.${FSS}.initrd-${SUBARCH}.new"