summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-10-08 12:48:47 +0000
committerFrancois Pons <fpons@mandriva.com>2001-10-08 12:48:47 +0000
commit7df0d97b9467aa28ad554dc426a99789df71bbc4 (patch)
treecc29e0316c360e36f17cc2ac5ffe1d5ed3f2fcf7
parent9c6c482b4de5560599d7bb4594a6a82fc694e92a (diff)
downloaddrakx-7df0d97b9467aa28ad554dc426a99789df71bbc4.tar
drakx-7df0d97b9467aa28ad554dc426a99789df71bbc4.tar.gz
drakx-7df0d97b9467aa28ad554dc426a99789df71bbc4.tar.bz2
drakx-7df0d97b9467aa28ad554dc426a99789df71bbc4.tar.xz
drakx-7df0d97b9467aa28ad554dc426a99789df71bbc4.zip
added silly modification to avoid using more than 7 partition for DAC960 (/home
and /var are not created in the current state).
-rwxr-xr-xrescue/tree/etc/oem5
1 files changed, 3 insertions, 2 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem
index 05f90a9a1..aee0cd14b 100755
--- a/rescue/tree/etc/oem
+++ b/rescue/tree/etc/oem
@@ -43,6 +43,7 @@ eval {
close F;
};
#- examine DAC960 device.
+#- there is a problem as there is no more than 7 partitions available, this means no /home and no /var.
unless ($hd) {
local $_;
open F, "dmesg |";
@@ -283,14 +284,14 @@ if ($minor == 5) {
printf F "mkpart logical ext2 %s %s\n", correct_start_end(\$point, $point+$inst_size);
printf F "mkpart logical linux-swap %s %s\n", correct_start_end(\$point, $point+$swap_size);
printf F "mkpart logical ext2 %s %s\n", correct_start_end(\$point, $point+$root_size);
-if (exists $options{server}) {
+if (exists $options{server} && $hd !~ /^rd\//) {
my $var_size = ($hd_size - $point) / 2;
if ($var_size > 1500) {
$var = $root+1;
printf F "mkpart logical ext2 %s %s\n", correct_start_end(\$point, $point+$var_size);
}
}
-if ($hd_size - $point > 100) {
+if ($hd_size - $point > 100 && $hd !~ /^rd\//) {
$home = ($var || $root) + 1;
printf F "mkpart logical ext2 %s %s\n", correct_start_end(\$point, $hd_size);
}