mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-10 17:41:32 +00:00
Build minimized images in a 1GiB image
This commit is contained in:
parent
89e87b4c2c
commit
532bd5b5ed
@ -717,6 +717,11 @@ echo "SUBPROJECT=\"${SUBPROJECT:-}\"" >> config/chroot
|
|||||||
echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
|
echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
|
||||||
echo "BUILDSTAMP=\"$NOW\"" >> config/binary
|
echo "BUILDSTAMP=\"$NOW\"" >> config/binary
|
||||||
echo "SUBPROJECT=\"${SUBPROJECT:-}\"" >> 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
|
case $ARCH+$SUBARCH in
|
||||||
armhf+raspi2)
|
armhf+raspi2)
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||||
FS_LABEL="cloudimg-rootfs"
|
FS_LABEL="cloudimg-rootfs"
|
||||||
|
|
||||||
. config/functions
|
|
||||||
|
|
||||||
. config/binary
|
. config/binary
|
||||||
|
|
||||||
|
. config/functions
|
||||||
|
|
||||||
BOOTPART_START=
|
BOOTPART_START=
|
||||||
BOOTPART_END=
|
BOOTPART_END=
|
||||||
BOOT_MOUNTPOINT=
|
BOOT_MOUNTPOINT=
|
||||||
|
@ -12,6 +12,8 @@ esac
|
|||||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||||
FS_LABEL="cloudimg-rootfs"
|
FS_LABEL="cloudimg-rootfs"
|
||||||
|
|
||||||
|
. config/binary
|
||||||
|
|
||||||
. config/functions
|
. config/functions
|
||||||
|
|
||||||
create_partitions() {
|
create_partitions() {
|
||||||
|
@ -10,6 +10,8 @@ esac
|
|||||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||||
FS_LABEL="cloudimg-rootfs"
|
FS_LABEL="cloudimg-rootfs"
|
||||||
|
|
||||||
|
. config/binary
|
||||||
|
|
||||||
. config/functions
|
. config/functions
|
||||||
|
|
||||||
create_partitions() {
|
create_partitions() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user