summaryrefslogtreecommitdiffstats
path: root/rescue/tree
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-05-17 14:55:32 +0000
committerFrancois Pons <fpons@mandriva.com>2001-05-17 14:55:32 +0000
commit93796296016933af1c23f13fc2ae6d5f62299527 (patch)
treecfaf385f3df00e14611dcaa1a580a64353ecdd69 /rescue/tree
parentef61a6c5a0bce4f73f876397bd7eaad7cb3a518c (diff)
downloaddrakx-backup-do-not-use-93796296016933af1c23f13fc2ae6d5f62299527.tar
drakx-backup-do-not-use-93796296016933af1c23f13fc2ae6d5f62299527.tar.gz
drakx-backup-do-not-use-93796296016933af1c23f13fc2ae6d5f62299527.tar.bz2
drakx-backup-do-not-use-93796296016933af1c23f13fc2ae6d5f62299527.tar.xz
drakx-backup-do-not-use-93796296016933af1c23f13fc2ae6d5f62299527.zip
fixed parted that ask for confirmation if partition table is not right (MAXDATA
for example), this cause parted to ignore warning. added blank space between partition windows and linux to help resolving above case.
Diffstat (limited to 'rescue/tree')
-rwxr-xr-xrescue/tree/etc/oem3
1 files changed, 2 insertions, 1 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem
index e1a546531..7b471f0a6 100755
--- a/rescue/tree/etc/oem
+++ b/rescue/tree/etc/oem
@@ -106,7 +106,7 @@ while (<F>) {
}
close F;
for (1..2) {
- open F, "parted /dev/$hd print |";
+ open F, "parted /dev/$hd -s print |";
while (<F>) {
/^Disk geometry [^:]*:\s*([\d\.]+)-([\d\.]+)/ and do { $hd_size = $2 - $1 };
#/^Disk label type:\s*msdos/ and do { $hd_type = 'msdos' };
@@ -182,6 +182,7 @@ Type \`\`yes'' and [enter] to go on\n"
} else {
$point = $hd_parts[$fat_pos]{end};
}
+ $point+=9; #- keep blank space between partitions if parted cannot handle partition table correctly.
} else {
unless (defined $yes) {
do {