diff options
author | Francois Pons <fpons@mandriva.com> | 2001-10-04 14:28:59 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-10-04 14:28:59 +0000 |
commit | c638a2ca0533a44a630b541a80e5e272a761b0c7 (patch) | |
tree | 246c92827e83baa96a34c2d1b79b7f22a6dd929e /rescue/tree | |
parent | 9886d15331abe5845dd18156de515211d6bff161 (diff) | |
download | drakx-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')
-rwxr-xr-x | rescue/tree/etc/oem | 2 |
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! |