summaryrefslogtreecommitdiffstats
path: root/rescue
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
parent9886d15331abe5845dd18156de515211d6bff161 (diff)
downloaddrakx-backup-do-not-use-c638a2ca0533a44a630b541a80e5e272a761b0c7.tar
drakx-backup-do-not-use-c638a2ca0533a44a630b541a80e5e272a761b0c7.tar.gz
drakx-backup-do-not-use-c638a2ca0533a44a630b541a80e5e272a761b0c7.tar.bz2
drakx-backup-do-not-use-c638a2ca0533a44a630b541a80e5e272a761b0c7.tar.xz
drakx-backup-do-not-use-c638a2ca0533a44a630b541a80e5e272a761b0c7.zip
fix (work around) parted problem when it refuse to use all disk space for
partition.
Diffstat (limited to 'rescue')
-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!