From c5b6ffcecd4159b7689fe8f9a47d40c17a586bfc Mon Sep 17 00:00:00 2001 From: Jonathan Maw Date: Fri, 7 Dec 2012 09:29:30 +0000 Subject: Modify ARM scripts to enlarge the devel image --- armv7-versatile/arm-devel-system-setup | 4 ++++ armv7-versatile/run-baserock-image.sh | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/armv7-versatile/arm-devel-system-setup b/armv7-versatile/arm-devel-system-setup index a6d0201..2f5ce3a 100755 --- a/armv7-versatile/arm-devel-system-setup +++ b/armv7-versatile/arm-devel-system-setup @@ -2,6 +2,10 @@ set -e +#Ensure the root partition is as large as it can be, because we may +#have enlarged the disk image +btrfs filesystem resize max / + #Ensure the /src directory exists mkdir -p /src diff --git a/armv7-versatile/run-baserock-image.sh b/armv7-versatile/run-baserock-image.sh index ad378d2..6204651 100755 --- a/armv7-versatile/run-baserock-image.sh +++ b/armv7-versatile/run-baserock-image.sh @@ -23,6 +23,13 @@ KERNEL_IMAGE="$DIR/$IMAGE_BASENAME.zimage" # If we ever get multiple disks working on qemu ARM, execute: # ./create-source-disk.sh "$DIR" +# Because the devel image doesn't have enough space to develop on the +# main partition, resize it. +truncate --size=+3G "$DECOMPRESSED_IMAGE" +sfdisk "DECOMPRESSED_IMAGE" <