Enlarge image, content has grown (building fails without this)
This commit is contained in:
parent
f7aaf94080
commit
14e097a42c
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
qemu-img create -f raw compr.img 1000M
|
qemu-img create -f raw compr.img 1100M
|
||||||
|
|
||||||
# copy partition table from raspi3.img
|
# copy partition table from raspi3.img
|
||||||
sfdisk --quiet --dump raspi3.img | sfdisk --quiet compr.img
|
sfdisk --quiet --dump raspi3.img | sfdisk --quiet compr.img
|
||||||
|
@ -25,7 +25,7 @@ rroot="$3"
|
||||||
set -- ${cmappings[1]}
|
set -- ${cmappings[1]}
|
||||||
croot="$3"
|
croot="$3"
|
||||||
sudo e2fsck -y -f /dev/mapper/${rroot?}
|
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 e2image -rap /dev/mapper/${rroot?} /dev/mapper/${croot?}
|
||||||
|
|
||||||
sudo kpartx -ds raspi3.img
|
sudo kpartx -ds raspi3.img
|
||||||
|
|
|
@ -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
|
# 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),
|
my $original_partition_table = pack('H4' x (tablelength()/2),
|
||||||
"0020", "2100", "0c3e", "1826", "0008", "0000", "0058", "0900",
|
"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",
|
||||||
"0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000",
|
"0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000",
|
||||||
"55aa");
|
"55aa");
|
||||||
|
|
Loading…
Reference in New Issue