From 7df0d97b9467aa28ad554dc426a99789df71bbc4 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 8 Oct 2001 12:48:47 +0000 Subject: added silly modification to avoid using more than 7 partition for DAC960 (/home and /var are not created in the current state). --- rescue/tree/etc/oem | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rescue') 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); } -- cgit v1.2.1