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.
ksolomko/vlan
Michael Prokop 13 years ago
parent 8245a49299
commit 4cc1f8e4bc

@ -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

Loading…
Cancel
Save