/[smeserver]/cdrom.image/install.cfg
ViewVC logotype

Annotation of /cdrom.image/install.cfg

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (hide annotations) (download)
Sat Jul 30 07:28:32 2005 UTC (18 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +0 -0 lines
FILE REMOVED
First major pass as anaconda installer
- Install/Upgrade detection working
- Only screens we want are being displayed
- Raid/LVM partitioning all done for installer
- Except for post-install (run, status) install is done
- TODO: post-install script isn't running
- TODO: post-upgrade script isn't working
- TODO: raid migration for upgrades
- TODO: status message for post-{install,upgrade}

1 gordonr 1.1 install
2     text
3     cdrom
4     skipx
5 slords 1.3 mouse
6 gordonr 1.1 network --device eth0 --bootproto dhcp
7     rootpw --iscrypted $1$iHhL195i$25OY88oyw2bxgU47MvuZf0
8     firewall --disabled
9 slords 1.4 selinux --disabled
10 gordonr 1.1 authconfig --enableshadow --enablemd5
11     bootloader --location=mbr
12     zerombr yes
13     %include /tmp/part-include
14    
15     %packages
16     @ Base
17    
18     %post
19     /sbin/syslogd &
20     sleep 2
21     /sbin/e-smith/signal-event post-install
22    
23     %pre
24     #!/bin/sh
25     set -x
26    
27     hds=""
28     raidlevel=2
29    
30     memsize=`cat /proc/meminfo | grep 'MemTotal:' | sed 's/^.* \([0-9]\+\) kB$/\1/'`
31     swapsize=$(($memsize/512))
32    
33     if [ $swapsize -gt 2048 ] ; then
34     swapsize=2048
35     fi
36    
37     # let's assume it's a SCSI system
38     hds=`grep 'sd[a-z]$' /proc/partitions | sed 's/.* sd/ sd/'`
39     set $hds
40     numhd=`echo $#`
41     if [ $numhd == "0" ] ; then
42     # No SCSI Drives is must be IDE
43     for file in /proc/ide/hd*
44     do
45     media=`cat $file/media`
46     if [ $media == "disk" ] ; then
47     hds="$hds `basename $file`"
48     fi
49     done
50 slords 1.2
51 gordonr 1.1 set $hds
52     numhd=`echo $#`
53     fi
54    
55     echo "# Auto configure partitions" > /tmp/part-include
56    
57     if [ $numhd -gt "0" ] ; then
58     hdlist=`echo $hds | sed 's/^ \+//;s/ \+$//;s/ \+/ /g;s/ /,/g'`
59     echo "clearpart --all --initlabel --drives=$hdlist" >> /tmp/part-include
60    
61     num=1
62     while [ $num -le $numhd ]; do
63     hd=`echo $hds | cut -d' ' -f$num`
64     echo "part raid.0_$num --size=100 --ondisk=$hd --asprimary" >> /tmp/part-include
65 slords 1.2 echo "part raid.1_$num --size=1500 --grow --ondisk=$hd" >> /tmp/part-include
66 gordonr 1.1
67     md0="$md0 raid.0_$num"
68     md1="$md1 raid.1_$num"
69     let num=num+1
70     done
71    
72     if [ $numhd -le "2" ] ; then
73     raidlevel=1
74     elif [ $numhd -ge "6" ]; then
75     raidlevel=6
76     else
77     raidlevel=5
78     fi
79 slords 1.2
80     echo "raid /boot --fstype ext3 --level=1 --device=md0 $md0" >> /tmp/part-include
81 gordonr 1.1 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
83 slords 1.2 echo "logvol / --fstype ext3 --name=lv_root --vgname=vg_primary --size=1200 --grow" >> /tmp/part-include
84 gordonr 1.1 echo "logvol swap --fstype swap --name=lv_swap --vgname=vg_primary --size=256 --grow --maxsize=$swapsize" >> /tmp/part-include
85     fi

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed