mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-16 05:11:31 +00:00
Compress the initrd with LZMA by default, now that the kernel supports
this across the board. Saves about 3MB on Ubuntu live CDs.
This commit is contained in:
parent
4cdf1ba359
commit
48f4c7164f
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
livecd-rootfs (0.85) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Compress the initrd with LZMA by default, now that the kernel supports
|
||||||
|
this across the board. Saves about 3MB on Ubuntu live CDs.
|
||||||
|
|
||||||
|
-- Colin Watson <cjwatson@ubuntu.com> Tue, 23 Jun 2009 17:26:36 +0100
|
||||||
|
|
||||||
livecd-rootfs (0.84) karmic; urgency=low
|
livecd-rootfs (0.84) karmic; urgency=low
|
||||||
|
|
||||||
* Don't force installation of libgoffice-gtk-0-6 on xubuntu; this package
|
* Don't force installation of libgoffice-gtk-0-6 on xubuntu; this package
|
||||||
|
@ -70,6 +70,7 @@ export CASPER_GENERATE_UUID=1
|
|||||||
SRCMIRROR=http://archive.ubuntu.com/ubuntu
|
SRCMIRROR=http://archive.ubuntu.com/ubuntu
|
||||||
ARCH=$(dpkg --print-architecture)
|
ARCH=$(dpkg --print-architecture)
|
||||||
OPTMIRROR=
|
OPTMIRROR=
|
||||||
|
INITRD_COMPRESSOR=lzma
|
||||||
|
|
||||||
select_mirror () {
|
select_mirror () {
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
@ -499,6 +500,12 @@ ${COMMENT}deb-src ${SECSRCMIRROR} ${STE}-security multiverse
|
|||||||
# ubiquity >= 1.9.4 copies the kernel from the CD root if it doesn't
|
# 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
|
# find one on the livefs, allowing us to save space
|
||||||
mv ${ROOT}/boot/vmlinu?-"${KVER}" livecd.${FSS}.kernel-"${SUBARCH}"
|
mv ${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"
|
||||||
|
mv "livecd.${FSS}.initrd-${SUBARCH}.new" \
|
||||||
|
"livecd.${FSS}.initrd-${SUBARCH}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
NUMKVERS="$(set -- $KVERS; echo $#)"
|
NUMKVERS="$(set -- $KVERS; echo $#)"
|
||||||
if [ "$NUMKVERS" = 1 ]; then
|
if [ "$NUMKVERS" = 1 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user