From 4cc1f8e4bccc3866c966d8715ecac2923c9c06e0 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 12 Jun 2013 11:15:33 +0200 Subject: [PATCH] Use 100% instead of '-1' to address end of disk Otherwise parted fails with: | Error: Can't have the end before the start! (start sector=2067 length=-1843) on Proxmox with vmdk file format. --- deployment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment.sh b/deployment.sh index f317f09..afd6f52 100755 --- a/deployment.sh +++ b/deployment.sh @@ -752,7 +752,7 @@ else # no LVM (default) parted -s /dev/${DISK} mktable "$TABLE" || die "Failed to set up partition table" # hw-raid with rootfs + swap partition parted -s /dev/${DISK} 'mkpart primary ext4 2048s 95%' || die "Failed to set up primary partition" - parted -s /dev/${DISK} 'mkpart primary linux-swap 95% -1' || die "Failed to set up swap partition" + parted -s /dev/${DISK} 'mkpart primary linux-swap 95% 100%' || die "Failed to set up swap partition" sync # used later by installer