summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2012-12-07 09:29:30 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2012-12-07 09:29:30 +0000
commitc5b6ffcecd4159b7689fe8f9a47d40c17a586bfc (patch)
treeed55fdc4b28ac98331d16db08310b6b478d71923
parentd7122b702a31b35a261a04eaf31b452019de652a (diff)
downloadgenivi-initial-setup-c5b6ffcecd4159b7689fe8f9a47d40c17a586bfc.tar.gz
Modify ARM scripts to enlarge the devel image
-rwxr-xr-xarmv7-versatile/arm-devel-system-setup4
-rwxr-xr-xarmv7-versatile/run-baserock-image.sh7
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