diff options
author | Francois Pons <fpons@mandriva.com> | 2001-04-16 14:22:45 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-04-16 14:22:45 +0000 |
commit | ce305a9ef75ea9e802cf23bcd78ae28c90e15542 (patch) | |
tree | 8d3abbc0165a49287d41bad4a7e812a533675205 /rescue/tree/etc | |
parent | 40023c12d2ac08c3f7d38a4ea38221d2ac8b7cbd (diff) | |
download | drakx-ce305a9ef75ea9e802cf23bcd78ae28c90e15542.tar drakx-ce305a9ef75ea9e802cf23bcd78ae28c90e15542.tar.gz drakx-ce305a9ef75ea9e802cf23bcd78ae28c90e15542.tar.bz2 drakx-ce305a9ef75ea9e802cf23bcd78ae28c90e15542.tar.xz drakx-ce305a9ef75ea9e802cf23bcd78ae28c90e15542.zip |
fixed to avoid nasty message in wrong places.
Diffstat (limited to 'rescue/tree/etc')
-rwxr-xr-x | rescue/tree/etc/oem | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem index 3e810e2a3..44b2725ed 100755 --- a/rescue/tree/etc/oem +++ b/rescue/tree/etc/oem @@ -102,7 +102,6 @@ unless ($root_size) { my $minor = defined $resize_fat_size && $fat_pos > 0 ? 6 : 5; my $point = 0.0; -open F, "| parted -s /dev/$hd"; if (defined $resize_fat_size) { do { print " @@ -116,6 +115,7 @@ Type \`\`yes'' and [enter] to go on\n" #- if the size is not 0. #- KEEP IN MIND there is only one partition defined. $point = $hd_parts[$fat_pos]{start} + $resize_fat_size; + open F, "| parted -s /dev/$hd"; printf F "resize %d %s %s\n", $hd_parts[$fat_pos]{minor}, $hd_parts[$fat_pos]{start}, $point; } else { unless (defined $yes) { @@ -129,6 +129,7 @@ Type \`\`yes'' and [enter] to go on\n" } while (($yes = <STDIN>) !~ /^\s*yes\s*$/i); } #- build a new disk label here. + open F, "| parted -s /dev/$hd"; print F "mklabel msdos\n"; } #- all linux partition are stored inside an extended partition, this is easier to manipulate after. |