Make lzma initramfs compression opt-in rather than opt-out, and do not

opt-in to it for live-server builds to speed up the boot. (LP: #1750873)
ubuntu/cosmic
Michael Hudson-Doyle 7 years ago
parent 0d750f78bc
commit b7f3ec398b

4
debian/changelog vendored

@ -1,7 +1,7 @@
livecd-rootfs (2.510) UNRELEASED; urgency=medium livecd-rootfs (2.510) UNRELEASED; urgency=medium
* Set INITRAMFS_COMPRESSION to gzip for live-server builds to speed up the * Make lzma initramfs compression opt-in rather than opt-out, and do not
boot. (LP: #1750873) opt-in to it for live-server builds to speed up the boot. (LP: #1750873)
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Tue, 13 Mar 2018 21:24:27 +1300 -- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Tue, 13 Mar 2018 21:24:27 +1300

@ -324,6 +324,7 @@ fi
case $PROJECT in case $PROJECT in
ubuntu|ubuntu-dvd) ubuntu|ubuntu-dvd)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard ubuntu-desktop add_task install minimal standard ubuntu-desktop
LIVE_TASK='ubuntu-live' LIVE_TASK='ubuntu-live'
case $ARCH in case $ARCH in
@ -332,6 +333,7 @@ case $PROJECT in
;; ;;
ubuntu-desktop-next) ubuntu-desktop-next)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard ubuntu-desktop-next ubuntu-sdk-libs add_task install minimal standard ubuntu-desktop-next ubuntu-sdk-libs
COMPONENTS='main restricted universe' COMPONENTS='main restricted universe'
LIVE_TASK='ubuntu-touch-live' LIVE_TASK='ubuntu-touch-live'
@ -351,6 +353,7 @@ case $PROJECT in
;; ;;
kubuntu|kubuntu-dvd) kubuntu|kubuntu-dvd)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard add_task install minimal standard
add_task install kubuntu-desktop add_task install kubuntu-desktop
LIVE_TASK='kubuntu-live' LIVE_TASK='kubuntu-live'
@ -362,6 +365,7 @@ case $PROJECT in
;; ;;
kubuntu-active) kubuntu-active)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard kubuntu-active add_task install minimal standard kubuntu-active
LIVE_TASK='kubuntu-active-live' LIVE_TASK='kubuntu-active-live'
COMPONENTS='main restricted universe' COMPONENTS='main restricted universe'
@ -369,6 +373,7 @@ case $PROJECT in
;; ;;
kubuntu-plasma5) kubuntu-plasma5)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard add_task install minimal standard
add_package install kubuntu-plasma5-desktop add_package install kubuntu-plasma5-desktop
# Technically cheating, but PPAs don't have tasks and the # Technically cheating, but PPAs don't have tasks and the
@ -381,6 +386,7 @@ case $PROJECT in
;; ;;
edubuntu|edubuntu-dvd) edubuntu|edubuntu-dvd)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard ubuntu-desktop edubuntu-desktop-gnome add_task install minimal standard ubuntu-desktop edubuntu-desktop-gnome
LIVE_TASK='edubuntu-live' LIVE_TASK='edubuntu-live'
case $ARCH in case $ARCH in
@ -390,6 +396,7 @@ case $PROJECT in
;; ;;
xubuntu) xubuntu)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard xubuntu-desktop add_task install minimal standard xubuntu-desktop
add_package install xterm add_package install xterm
LIVE_TASK='xubuntu-live' LIVE_TASK='xubuntu-live'
@ -403,11 +410,13 @@ case $PROJECT in
;; ;;
ubuntu-netbook) ubuntu-netbook)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard ubuntu-netbook add_task install minimal standard ubuntu-netbook
LIVE_TASK='netbook-live' LIVE_TASK='netbook-live'
;; ;;
mythbuntu) mythbuntu)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard mythbuntu-desktop add_task install minimal standard mythbuntu-desktop
LIVE_TASK='mythbuntu-live' LIVE_TASK='mythbuntu-live'
case $ARCH in case $ARCH in
@ -417,6 +426,7 @@ case $PROJECT in
;; ;;
lubuntu) lubuntu)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard lubuntu-desktop add_task install minimal standard lubuntu-desktop
LIVE_TASK='lubuntu-live' LIVE_TASK='lubuntu-live'
case $ARCH in case $ARCH in
@ -433,6 +443,7 @@ case $PROJECT in
;; ;;
lubuntu-next) lubuntu-next)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard lubuntu-qt-desktop add_task install minimal standard lubuntu-qt-desktop
LIVE_TASK='lubuntu-live-qt' LIVE_TASK='lubuntu-live-qt'
case $ARCH in case $ARCH in
@ -449,6 +460,7 @@ case $PROJECT in
;; ;;
ubuntu-gnome) ubuntu-gnome)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard ubuntu-gnome-desktop add_task install minimal standard ubuntu-gnome-desktop
LIVE_TASK='ubuntu-gnome-live' LIVE_TASK='ubuntu-gnome-live'
case $ARCH in case $ARCH in
@ -458,6 +470,7 @@ case $PROJECT in
;; ;;
ubuntu-budgie) ubuntu-budgie)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard ubuntu-budgie-desktop add_task install minimal standard ubuntu-budgie-desktop
LIVE_TASK='ubuntu-budgie-live' LIVE_TASK='ubuntu-budgie-live'
case $ARCH in case $ARCH in
@ -467,6 +480,7 @@ case $PROJECT in
;; ;;
ubuntu-mate) ubuntu-mate)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard ubuntu-mate-core ubuntu-mate-desktop add_task install minimal standard ubuntu-mate-core ubuntu-mate-desktop
LIVE_TASK='ubuntu-mate-live' LIVE_TASK='ubuntu-mate-live'
case $ARCH in case $ARCH in
@ -476,6 +490,7 @@ case $PROJECT in
;; ;;
ubuntustudio-dvd) ubuntustudio-dvd)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard ubuntustudio-desktop ubuntustudio-audio ubuntustudio-fonts ubuntustudio-graphics ubuntustudio-video ubuntustudio-publishing ubuntustudio-photography add_task install minimal standard ubuntustudio-desktop ubuntustudio-audio ubuntustudio-fonts ubuntustudio-graphics ubuntustudio-video ubuntustudio-publishing ubuntustudio-photography
COMPONENTS='main restricted universe multiverse' COMPONENTS='main restricted universe multiverse'
case $ARCH in case $ARCH in
@ -484,6 +499,7 @@ case $PROJECT in
;; ;;
ubuntukylin) ubuntukylin)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard ubuntukylin-desktop add_task install minimal standard ubuntukylin-desktop
add_package install ubuntukylin-default-settings add_package install ubuntukylin-default-settings
LIVE_TASK='ubuntukylin-live' LIVE_TASK='ubuntukylin-live'
@ -494,6 +510,7 @@ case $PROJECT in
;; ;;
base) base)
INITRAMFS_COMPRESSION='lzma'
add_task install minimal standard add_task install minimal standard
;; ;;
@ -507,7 +524,6 @@ case $PROJECT in
case $ARCH in case $ARCH in
amd64) add_package live linux-signed-generic ;; amd64) add_package live linux-signed-generic ;;
esac esac
INITRAMFS_COMPRESSION='gzip'
;; ;;
esac esac
COMPONENTS='main' COMPONENTS='main'
@ -571,10 +587,12 @@ case $PROJECT in
;; ;;
ubuntu-base) ubuntu-base)
INITRAMFS_COMPRESSION='lzma'
OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal" OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal"
;; ;;
ubuntu-touch|ubuntu-touch-custom) ubuntu-touch|ubuntu-touch-custom)
INITRAMFS_COMPRESSION='lzma'
HINTS="packagekit ubuntu-system-settings" HINTS="packagekit ubuntu-system-settings"
case $ARCH in case $ARCH in
amd64|i386) amd64|i386)
@ -613,6 +631,7 @@ case $PROJECT in
;; ;;
ubuntu-cpc) ubuntu-cpc)
INITRAMFS_COMPRESSION='lzma'
if [ "${SUBPROJECT:-}" = minimized ]; then if [ "${SUBPROJECT:-}" = minimized ]; then
add_task install cloud-image add_task install cloud-image
add_package install sudo add_package install sudo
@ -656,7 +675,6 @@ case $PROJECT in
OPTS="${OPTS:+$OPTS }--hdd-label=cloudimg-rootfs" OPTS="${OPTS:+$OPTS }--hdd-label=cloudimg-rootfs"
OPTS="${OPTS:+$OPTS }--ext-resize-blocks=536870912 --ext-block-size=4096" OPTS="${OPTS:+$OPTS }--ext-resize-blocks=536870912 --ext-block-size=4096"
OPTS="${OPTS:+$OPTS }--ext-fudge-factor=15" OPTS="${OPTS:+$OPTS }--ext-fudge-factor=15"
INITRAMFS_COMPRESSION="gzip"
;; ;;
*) *)
@ -818,7 +836,7 @@ lb config noauto \
${KERNEL_FLAVOURS:+--linux-flavours "$KERNEL_FLAVOURS"} \ ${KERNEL_FLAVOURS:+--linux-flavours "$KERNEL_FLAVOURS"} \
--initsystem none \ --initsystem none \
--bootloader "$BOOTLOADER" \ --bootloader "$BOOTLOADER" \
--initramfs-compression "${INITRAMFS_COMPRESSION:-lzma}" \ ${INITRAMFS_COMPRESSION:+--initramfs-compression "$INITRAMFS_COMPRESSION}" \
--cache false \ --cache false \
${BOOTAPPEND_LIVE:+--bootappend-live "$BOOTAPPEND_LIVE"} \ ${BOOTAPPEND_LIVE:+--bootappend-live "$BOOTAPPEND_LIVE"} \
$OPTS \ $OPTS \

Loading…
Cancel
Save