From 13b08c4f6273a542b72c3baec369c1809590245f Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 9 Jun 2011 11:31:58 +0000 Subject: [PATCH] Do not use sfdisk in virtual environment but use parted as well. sfdisk fails on some special disk geometries and forcing the partition schema using --force isn't relevant enough since we can just use parted as for physical installations as well. From: Michael Prokop --- deployment.sh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/deployment.sh b/deployment.sh index 550b782..3d341fd 100755 --- a/deployment.sh +++ b/deployment.sh @@ -426,19 +426,8 @@ if [[ $(imvirt) == "Physical" ]] || $PRO_EDITION ; then else # virtual installation # just one disk, assuming VM installation without swap partition - # do not depend on static value (like 33554432 for 16GB) - disksize=$(cat /sys/block/${DISK}/size) - disksize=$(echo $(($disksize-2048))) # proper alignment for grub and performance - - sfdisk /dev/${DISK} <