2 |
text |
text |
3 |
cdrom |
cdrom |
4 |
skipx |
skipx |
5 |
mouse --device none |
mouse |
6 |
network --device eth0 --bootproto dhcp |
network --device eth0 --bootproto dhcp |
7 |
rootpw --iscrypted $1$iHhL195i$25OY88oyw2bxgU47MvuZf0 |
rootpw --iscrypted $1$iHhL195i$25OY88oyw2bxgU47MvuZf0 |
8 |
firewall --disabled |
firewall --disabled |
20 |
sleep 2 |
sleep 2 |
21 |
/sbin/e-smith/signal-event post-install |
/sbin/e-smith/signal-event post-install |
22 |
|
|
|
# HACK - fix selinux config |
|
|
perl -p -i -e 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config |
|
|
|
|
23 |
%pre |
%pre |
24 |
#!/bin/sh |
#!/bin/sh |
25 |
set -x |
set -x |
47 |
hds="$hds `basename $file`" |
hds="$hds `basename $file`" |
48 |
fi |
fi |
49 |
done |
done |
50 |
|
|
51 |
set $hds |
set $hds |
52 |
numhd=`echo $#` |
numhd=`echo $#` |
53 |
fi |
fi |
62 |
while [ $num -le $numhd ]; do |
while [ $num -le $numhd ]; do |
63 |
hd=`echo $hds | cut -d' ' -f$num` |
hd=`echo $hds | cut -d' ' -f$num` |
64 |
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 |
65 |
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 |
66 |
|
|
67 |
md0="$md0 raid.0_$num" |
md0="$md0 raid.0_$num" |
68 |
md1="$md1 raid.1_$num" |
md1="$md1 raid.1_$num" |
76 |
else |
else |
77 |
raidlevel=5 |
raidlevel=5 |
78 |
fi |
fi |
79 |
|
|
80 |
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 |
81 |
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 |
82 |
echo "volgroup vg_primary --pesize=32768 pv.1" >> /tmp/part-include |
echo "volgroup vg_primary --pesize=32768 pv.1" >> /tmp/part-include |
83 |
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 |
84 |
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 |
85 |
fi |
fi |