summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-06-15 17:29:10 -0400
committerDan Radez <dradez@redhat.com>2016-06-15 17:29:10 -0400
commit39720d0230faa526ccfb63baa6d3789ab578af04 (patch)
tree7f5a8fc960446f79e76cc884bce6b7bcbc3e915a
parenta5967c102534cfe5a12850a8e34634e997c08b03 (diff)
Expanding the overcloud-full filesystem
Change-Id: Idc5731380a57e227c989c23521e9283859ea1686 Signed-off-by: Dan Radez <dradez@redhat.com>
-rwxr-xr-xbuild/overcloud-full.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/overcloud-full.sh b/build/overcloud-full.sh
index 1a8d8461..6f401a6b 100755
--- a/build/overcloud-full.sh
+++ b/build/overcloud-full.sh
@@ -18,6 +18,11 @@ if [ ! -d images/ ]; then mkdir images; fi
tar -xf cache/overcloud-full.tar -C images/
mv -f images/overcloud-full.qcow2 images/overcloud-full_build.qcow2
+# Add extra space to the overcloud image
+qemu-img resize images/overcloud-full_build.qcow2 +1G
+LIBGUESTFS_BACKEND=direct virt-customize -a images/overcloud-full_build.qcow2 \
+ --run-command 'resize2fs /dev/sda'
+
##########################################################
##### Prep initial overcloud image with common deps #####
##########################################################