summaryrefslogtreecommitdiffstats
path: root/rescue/tree/etc/oem
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-10-04 14:28:59 +0000
committerFrancois Pons <fpons@mandriva.com>2001-10-04 14:28:59 +0000
commitc638a2ca0533a44a630b541a80e5e272a761b0c7 (patch)
tree246c92827e83baa96a34c2d1b79b7f22a6dd929e /rescue/tree/etc/oem
parent9886d15331abe5845dd18156de515211d6bff161 (diff)
downloaddrakx-c638a2ca0533a44a630b541a80e5e272a761b0c7.tar
drakx-c638a2ca0533a44a630b541a80e5e272a761b0c7.tar.gz
drakx-c638a2ca0533a44a630b541a80e5e272a761b0c7.tar.bz2
drakx-c638a2ca0533a44a630b541a80e5e272a761b0c7.tar.xz
drakx-c638a2ca0533a44a630b541a80e5e272a761b0c7.zip
fix (work around) parted problem when it refuse to use all disk space for
partition.
Diffstat (limited to 'rescue/tree/etc/oem')
-rwxr-xr-xrescue/tree/etc/oem2
1 files changed, 1 insertions, 1 deletions
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 (<F>) {
- /^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!