Enlarge image, content has grown (building fails without this)

This commit is contained in:
Michael Stapelberg 2018-01-08 22:46:35 +01:00
parent f7aaf94080
commit 14e097a42c
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
set -e
qemu-img create -f raw compr.img 1000M
qemu-img create -f raw compr.img 1100M
# copy partition table from raspi3.img
sfdisk --quiet --dump raspi3.img | sfdisk --quiet compr.img
@ -25,7 +25,7 @@ rroot="$3"
set -- ${cmappings[1]}
croot="$3"
sudo e2fsck -y -f /dev/mapper/${rroot?}
sudo resize2fs /dev/mapper/${rroot?} 700M
sudo resize2fs /dev/mapper/${rroot?} 800M
sudo e2image -rap /dev/mapper/${rroot?} /dev/mapper/${croot?}
sudo kpartx -ds raspi3.img

View File

@ -68,7 +68,7 @@ sub tablelength { partition_table_entry() * partition_count() + partition_signat
# https://people.debian.org/~stapelberg/raspberrypi3/2017-10-08/2017-10-08-raspberry-pi-3-buster-PREVIEW.img.bz2
my $original_partition_table = pack('H4' x (tablelength()/2),
"0020", "2100", "0c3e", "1826", "0008", "0000", "0058", "0900",
"003e", "1926", "837a", "3b7f", "0060", "0900", "00e0", "1500",
"003e", "1926", "833a", "2e8c", "0060", "0900", "0000", "1900",
"0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000",
"0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000",
"55aa");