mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-10-15 09:04:08 +00:00
fix: Increase CPC disk-image base imagesize to 2.5GB
In the ubuntu-cpc disk-image binary we need to avail of the ever increasing size of packages. 2.2GB is now just a bit too small leading to `No space left on device` errors when the binary hits `grub-install`. This commit increases $imagesize to 2.5GB (in the binary as an override initially implemented in ecaaf0484). This commit also runs `df` just after the grub-pc && grub2-common installs to make for easier debugging in the future. Refs: LP: #2115811
This commit is contained in:
parent
ae0be803f1
commit
f7e0f39a1d
@ -1,6 +1,7 @@
|
||||
# vi: ts=4 expandtab syntax=sh
|
||||
|
||||
# default imagesize = 2252*1024**2 = 2.2G (the current size we ship)
|
||||
# However this value may be overridden in individual hooks/binaries (like in buildd and ubuntu-cpc)
|
||||
imagesize=${IMAGE_SIZE:-2361393152}
|
||||
fs_label="${FS_LABEL:-rootfs}"
|
||||
|
||||
|
@ -14,6 +14,10 @@ ROOTPART_START=1
|
||||
|
||||
my_d=$(dirname $(readlink -f ${0}))
|
||||
|
||||
# NEW CPC default imagesize is 2.5G [2684354560 bytes] to avail of the slow increase in pkg sizes
|
||||
# This value will be passed into live-build/functions as an override
|
||||
imagesize=2684354560
|
||||
|
||||
case $ARCH:$SUBARCH in
|
||||
ppc64el:*|powerpc:*)
|
||||
echo "POWER disk images are handled separately"
|
||||
@ -95,6 +99,7 @@ if [ "${should_install_grub}" -eq 1 ]; then
|
||||
echo "(hd0) ${loop_device}" > mountpoint/tmp/device.map
|
||||
# install the required package to get the grub-install command
|
||||
chroot mountpoint apt-get -qqy install --no-install-recommends grub-pc grub2-common
|
||||
chroot mountpoint df --all --human-readable --print-type
|
||||
chroot mountpoint grub-install ${loop_device}
|
||||
chroot mountpoint grub-bios-setup \
|
||||
--boot-image=i386-pc/boot.img \
|
||||
|
Loading…
x
Reference in New Issue
Block a user