/[smeserver]/cdrom.image/sme10/netinstall/ks-efi.cfg
ViewVC logotype

Contents of /cdrom.image/sme10/netinstall/ks-efi.cfg

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


Revision 1.2 - (show annotations) (download)
Wed Nov 25 14:10:36 2020 UTC (3 years, 7 months ago) by chrissn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Wed Nov 25 2020 Chris Sansom-Ninnes <chris@sansom.ninnes.net>
- Added RAID support for netinstall [SME: 10918]
- Added text install option for netinstall

1 # System authorization information
2 auth --enableshadow --passalgo=sha512
3
4 # we do not want Selinux
5 selinux --disabled
6
7 # services to activate
8 services --disabled=lm_sensors
9
10 # default root pass, willbe changed in post-install process anyway
11 rootpw --lock
12
13 # Accept eula
14 eula --agreed
15
16 # include the partitioning logic from the pre section.
17 %include /tmp/part-include
18
19 # disable kdump
20 %addon com_redhat_kdump --disable
21 %end
22
23 # added for netinstall
24 url --url https://mirror.canada.pialasse.com/releases/testing/10/smeos/x86_64/
25 repo --name=smeupdates --baseurl=https://mirror.canada.pialasse.com/releases/testing/10/smeupdates/x86_64/
26 #repo --name=remi-safe --baseurl=http://rpms.famillecollet.com/enterprise/7/safe/x86_64/
27 #repo --name=smeupdates-testing --baseurl=http://mirror.canada.pialasse.com/releases/testing/10/smeupdates-testing/x86_64/
28 #firewall --disabled
29 # /added for netinstall
30
31 %pre --interpreter=/bin/bash
32 # pre section
33 #----- partitioning logic below--------------
34 # pick the first drive that is not removable and is over MINSIZE
35 DIR="/sys/block"
36
37 # minimum size of hard drive needed specified in GIGABYTES
38 MINSIZE=5
39
40
41 # Number of detected drives
42 NDEV=0
43
44 for DEV in $(lsblk -nl | grep disk | cut -d' ' -f1); do
45 if [ -d /sys/block/$DEV ]; then
46 REMOVABLE=`cat /sys/block/$DEV/removable`
47 if (( $REMOVABLE == 0 )); then
48 SIZE=`cat /sys/block/$DEV/size`
49 GB=$(($SIZE/2**21))
50 if [ $GB -gt $MINSIZE ]; then
51 DRIVES[$NDEV]=$DEV
52 ((NDEV++))
53 fi
54 fi
55 fi
56 done
57
58 # For now keep things simple and just use the first one
59 # TODO:
60 # * Create software RAID depending on the number of detected drives
61 # * Allow non LVM install
62
63 ROOTDRIVE=${DRIVES[0]}
64 if [ $ROOTDRIVE == "" ] ; then
65 echo "No drive suitable for installation found! Please proceed manually."
66 # first in case detection fails...
67 cat << EOF > /tmp/part-include
68 # Clear the Master Boot Record
69 zerombr
70 # System bootloader configuration
71 clearpart --all --initlabel
72 # Automatically create partitions, no LVM
73 autopart --lvm
74
75 EOF
76
77 else
78 cat <<_EOF > /tmp/part-include
79 zerombr
80 clearpart --all --drives=$ROOTDRIVE --initlabel
81 bootloader --boot-drive=$ROOTDRIVE
82 part /boot/efi --fstype=efi --grow --maxsize=200 --size=20
83 part /boot --fstype xfs --size=500 --ondisk=$ROOTDRIVE --label=BOOT
84 part pv.01 --size=4500 --grow --ondisk=$ROOTDRIVE
85 volgroup main pv.01
86 logvol / --fstype xfs --name=root --vgname=main --grow --size=3000 --label=ROOT
87 logvol swap --fstype swap --name=swap --vgname=main --recommended --label=SWAP
88 _EOF
89
90 fi
91
92 %end
93
94
95
96 # packages to install
97 %packages
98 @base
99 @core
100 -chrony
101 -kexec-tools
102 -firewalld
103 %end
104
105
106
107 %post --interpreter=/usr/bin/bash --log=/var/log/ks.post02.log
108 # before reboot performing post-install
109 # this is for first alpha iso. we should put this in anaconda
110 # and / or handle possible upgrade later
111 /sbin/rsyslogd;
112 sleep 2;
113 /sbin/e-smith/signal-event post-install;
114 sleep 2;
115 /sbin/e-smith/db configuration set UnsavedChanges no;
116 touch /forcequotacheck
117
118 %end
119
120 %post --nochroot --log=/mnt/sysimage/var/log/ks.post01.log
121 #!/bin/bash
122 sysimage="/mnt/sysimage"
123
124 cp -r /tmp/anaconda.log ${sysimage}/root/
125 %end

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