diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2012-12-07 09:29:30 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2012-12-07 09:29:30 +0000 |
commit | c5b6ffcecd4159b7689fe8f9a47d40c17a586bfc (patch) | |
tree | ed55fdc4b28ac98331d16db08310b6b478d71923 | |
parent | d7122b702a31b35a261a04eaf31b452019de652a (diff) | |
download | genivi-initial-setup-c5b6ffcecd4159b7689fe8f9a47d40c17a586bfc.tar.gz |
Modify ARM scripts to enlarge the devel image
-rwxr-xr-x | armv7-versatile/arm-devel-system-setup | 4 | ||||
-rwxr-xr-x | armv7-versatile/run-baserock-image.sh | 7 |
2 files changed, 11 insertions, 0 deletions
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" <<EOF +1, ,83,* +EOF + find_tunctl() { for path in `which tunctl` /{usr/,usr/local/}{bin,sbin}/tunctl; do |