50 |
hds="$hds `basename $file`" |
hds="$hds `basename $file`" |
51 |
fi |
fi |
52 |
done |
done |
53 |
|
|
54 |
set $hds |
set $hds |
55 |
numhd=`echo $#` |
numhd=`echo $#` |
56 |
fi |
fi |
65 |
while [ $num -le $numhd ]; do |
while [ $num -le $numhd ]; do |
66 |
hd=`echo $hds | cut -d' ' -f$num` |
hd=`echo $hds | cut -d' ' -f$num` |
67 |
echo "part raid.0_$num --size=100 --ondisk=$hd --asprimary" >> /tmp/part-include |
echo "part raid.0_$num --size=100 --ondisk=$hd --asprimary" >> /tmp/part-include |
68 |
echo "part raid.1_$num --size=1400 --grow --ondisk=$hd --asprimary" >> /tmp/part-include |
echo "part raid.1_$num --size=1500 --grow --ondisk=$hd" >> /tmp/part-include |
69 |
|
|
70 |
md0="$md0 raid.0_$num" |
md0="$md0 raid.0_$num" |
71 |
md1="$md1 raid.1_$num" |
md1="$md1 raid.1_$num" |
79 |
else |
else |
80 |
raidlevel=5 |
raidlevel=5 |
81 |
fi |
fi |
82 |
|
|
83 |
echo "raid /boot --fstype ext3 --level=RAID1 --device=md0 $md0" >> /tmp/part-include |
echo "raid /boot --fstype ext3 --level=1 --device=md0 $md0" >> /tmp/part-include |
84 |
echo "raid pv.1 --fstype \"physical volume (LVM)\" --level=RAID$raidlevel --device=md1 $md1" >> /tmp/part-include |
echo "raid pv.1 --fstype \"physical volume (LVM)\" --level=RAID$raidlevel --device=md1 $md1" >> /tmp/part-include |
85 |
echo "volgroup vg_primary --pesize=32768 pv.1" >> /tmp/part-include |
echo "volgroup vg_primary --pesize=32768 pv.1" >> /tmp/part-include |
86 |
echo "logvol / --fstype ext3 --name=lv_root --vgname=vg_primary --size=1024 --grow" >> /tmp/part-include |
echo "logvol / --fstype ext3 --name=lv_root --vgname=vg_primary --size=1200 --grow" >> /tmp/part-include |
87 |
echo "logvol swap --fstype swap --name=lv_swap --vgname=vg_primary --size=256 --grow --maxsize=$swapsize" >> /tmp/part-include |
echo "logvol swap --fstype swap --name=lv_swap --vgname=vg_primary --size=256 --grow --maxsize=$swapsize" >> /tmp/part-include |
88 |
fi |
fi |