From 14e097a42c1ed8e445b29bcc63e30ba0fa6f6b39 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 8 Jan 2018 22:46:35 +0100 Subject: [PATCH] Enlarge image, content has grown (building fails without this) --- compress.sh | 4 ++-- rpi3-resizerootfs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compress.sh b/compress.sh index eeda0f9..708e0fb 100755 --- a/compress.sh +++ b/compress.sh @@ -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 diff --git a/rpi3-resizerootfs b/rpi3-resizerootfs index 383fe8c..af5508d 100755 --- a/rpi3-resizerootfs +++ b/rpi3-resizerootfs @@ -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");