/[smeserver]/cdrom.image/sme10/Packages/base/sme-kickstart-efi.cfg
ViewVC logotype

Contents of /cdrom.image/sme10/Packages/base/sme-kickstart-efi.cfg

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


Revision 1.1 - (show annotations) (download)
Mon Jun 15 04:25:34 2020 UTC (4 years, 6 months ago) by jpp
Branch: MAIN
*** empty log message ***

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

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