mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 11:21:12 +00:00
Merge lp:~rbalint/livecd-rootfs/minimize-1g
* Zero fill space in UEFI partitions, too * Set LB_ISO_PREPARER to livecd-rootfs to avoid unbound variable in default string * Build minimized images in a 1GiB image
This commit is contained in:
commit
0dc6880b47
5
debian/changelog
vendored
5
debian/changelog
vendored
@ -6,8 +6,11 @@ livecd-rootfs (2.485) UNRELEASED; urgency=medium
|
||||
[ Balint Reczey ]
|
||||
* Use default xz compression (-6) for raspi2 image.
|
||||
Xz with -0 generated ~35% bigger compressed image. (LP: #1732681)
|
||||
* Zero fill space in UEFI partitions, too
|
||||
* Set LB_ISO_PREPARER to livecd-rootfs to avoid unbound variable in default string
|
||||
* Build minimized images in a 1GiB image
|
||||
|
||||
-- Balint Reczey <rbalint@ubuntu.com> Mon, 20 Nov 2017 21:18:53 +0100
|
||||
-- Balint Reczey <rbalint@ubuntu.com> Thu, 23 Nov 2017 20:29:29 +0100
|
||||
|
||||
livecd-rootfs (2.484) bionic; urgency=medium
|
||||
|
||||
|
@ -694,6 +694,7 @@ esac
|
||||
lb config noauto \
|
||||
--mode ubuntu \
|
||||
--distribution "$SUITE" \
|
||||
--iso-preparer "livecd-rootfs" \
|
||||
--bootstrap-keyring ubuntu-keyring \
|
||||
--binary-images "$BINARY_IMAGES" \
|
||||
--memtest "$MEMTEST" \
|
||||
@ -716,6 +717,11 @@ echo "SUBPROJECT=\"${SUBPROJECT:-}\"" >> config/chroot
|
||||
echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
|
||||
echo "BUILDSTAMP=\"$NOW\"" >> config/binary
|
||||
echo "SUBPROJECT=\"${SUBPROJECT:-}\"" >> config/binary
|
||||
if [ "${SUBPROJECT:-}" = minimized ]; then
|
||||
# try building minimized images in a 1GiB image but still allow overriding
|
||||
# IMAGE_SIZE in lb build
|
||||
echo 'IMAGE_SIZE=${IMAGE_SIZE:-'$((1024*1024*1024))'}' >> config/binary
|
||||
fi
|
||||
|
||||
case $ARCH+$SUBARCH in
|
||||
armhf+raspi2)
|
||||
|
@ -171,6 +171,9 @@ umount_disk_image() {
|
||||
|
||||
local uefi_dev="/dev/mapper${loop_device///dev/}p15"
|
||||
if [ -e "$mountpoint/boot/efi" -a -b "$uefi_dev" ]; then
|
||||
# zero fill free space in UEFI partition
|
||||
cat < /dev/zero > "$mountpoint/boot/efi/bloat_file" 2> /dev/null || true
|
||||
rm "$mountpoint/boot/efi/bloat_file"
|
||||
umount --detach-loop "$mountpoint/boot/efi"
|
||||
fi
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||
FS_LABEL="cloudimg-rootfs"
|
||||
|
||||
. config/functions
|
||||
|
||||
. config/binary
|
||||
|
||||
. config/functions
|
||||
|
||||
BOOTPART_START=
|
||||
BOOTPART_END=
|
||||
BOOT_MOUNTPOINT=
|
||||
|
@ -12,6 +12,8 @@ esac
|
||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||
FS_LABEL="cloudimg-rootfs"
|
||||
|
||||
. config/binary
|
||||
|
||||
. config/functions
|
||||
|
||||
create_partitions() {
|
||||
|
@ -10,6 +10,8 @@ esac
|
||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||
FS_LABEL="cloudimg-rootfs"
|
||||
|
||||
. config/binary
|
||||
|
||||
. config/functions
|
||||
|
||||
create_partitions() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user