From 93796296016933af1c23f13fc2ae6d5f62299527 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Thu, 17 May 2001 14:55:32 +0000 Subject: 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. --- rescue/tree/etc/oem | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 () { } close F; for (1..2) { - open F, "parted /dev/$hd print |"; + open F, "parted /dev/$hd -s print |"; while () { /^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 { -- cgit v1.2.1