From c638a2ca0533a44a630b541a80e5e272a761b0c7 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Thu, 4 Oct 2001 14:28:59 +0000 Subject: fix (work around) parted problem when it refuse to use all disk space for partition. --- rescue/tree/etc/oem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem index e2935ff18..022c0160c 100755 --- a/rescue/tree/etc/oem +++ b/rescue/tree/etc/oem @@ -125,7 +125,7 @@ close F; for (1..2) { open F, "parted /dev/$hd -s print |"; while () { - /^Disk geometry [^:]*:\s*([\d\.]+)-([\d\.]+)/ and do { $hd_size = $2 - $1 }; + /^Disk geometry [^:]*:\s*([\d\.]+)-([\d\.]+)/ and do { $hd_size = $2 - $1 - 1 }; #/^Disk label type:\s*msdos/ and do { $hd_type = 'msdos' }; /^(\d+)\s+([\d\.]+)\s+([\d\.]+)\s+(primary|logical|extended)\s*(\S*)/ and do { #- this automatically drops extended partition here! -- cgit v1.2.1