From 308e08a30ae01254aeec19c366001c7c8186159b Mon Sep 17 00:00:00 2001 From: Gabriele Giacone <1o5g4r8o@gmail.com> Date: Wed, 20 Aug 2014 15:48:19 +0200 Subject: Workaround swap signature detection, zero'ing LVs. --- bin/g-i-installation.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index 475ac8d5..56aa6464 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -130,6 +130,8 @@ bootstrap_system() { cd $WORKSPACE echo "Creating throw-away logical volume with ${DISKSIZE_IN_GB} GiB now." sudo lvcreate -L${DISKSIZE_IN_GB}G -n $NAME $VG + echo "Workaround to remove swap signature from previous installs, see #757818" + time sudo dd if=/dev/zero of=$LV bs=4096 || true echo "Creating raw disk image with ${DISKSIZE_IN_GB} GiB now." sudo qemu-img create -f raw $LV ${DISKSIZE_IN_GB}G echo "Doing g-i installation test for $NAME now." -- cgit v1.2.3-70-g09d2