summaryrefslogtreecommitdiffstats
path: root/share/pxeboot/kickstart/c7_min.conf
blob: d027cc2bf936198e0d91a42d4eb842e9db6e0c0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#version=RHEL8
# Use graphical install

install
keyboard 'us'
lang zh_CN
text
skipx

eula --agreed
firstboot --disable
selinux --disabled
timezone Asia/Shanghai
auth  --useshadow  --passalgo=sha512

url --url="http://ipaddress/redhat/c7"
#autopart --type=lvm
zerombr
bootloader --location=mbr
clearpart --all --initlabel

part /boot --fstype="ext4" --size=1024
part swap  --fstype="swap" --size=4096
part /     --fstype="xfs"  --grow

reboot
rootpw --plaintext 123456

%post --interpreter=/usr/bin/bash
useradd admin
echo 123456 | passwd --stdin admin
sed -i 's/^#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
%end

%packages
@^infrastructure-server-environment
@base
@core
chrony
kexec-tools
%end

%addon com_redhat_kdump --disable --reserve-mb='auto'
%end

%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end