-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfedora29-secure.ks
58 lines (46 loc) · 1.85 KB
/
fedora29-secure.ks
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
51
52
53
54
55
56
57
58
# Choosing mode (graphical|text|cmdline [--non-interactive])
text
# Use network installation
# url --url http://download.fedoraproject.org/pub/fedora/linux/releases/29/Everything/x86_64/os/
url --mirrorlist https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-29&arch=x86_64
# Run the Setup Agent on first boot
firstboot --enable
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# System timezone
timezone Europe/London --isUtc --ntpservers=0.pool.ntp.org
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on --ipv6=off
network --hostname=localhost.localdomain
# Root password
rootpw --lock
# User password
user --groups=wheel --name=admin --password=password
# Firewall configuration
firewall --enabled --ssh
# SELinux
selinux --enforcing
# Partition clearing information
zerombr
clearpart --all
# Disk partitioning information
part /boot --fstype="xfs" --size=504
part pv.10 --fstype="lvmpv" --size=13004 --grow
volgroup vg_system pv.10
logvol / --fstype="xfs" --size=4000 --name=root --vgname=vg_system
logvol /home --fstype="xfs" --size=2000 --name=home --vgname=vg_system
logvol /tmp --fstype="xfs" --size=1000 --name=tmp --vgname=vg_system --fsoptions="nodev,nosuid,noexec"
logvol swap --fstype="swap" --size=1000 --name=swap --vgname=vg_system
logvol /var --fstype="xfs" --size=2000 --name=var --vgname=vg_system
logvol /var/tmp --fstype="xfs" --size=1000 --name=var_tmp --vgname=vg_system --fsoptions="nodev,nosuid,noexec"
logvol /var/log --fstype="xfs" --size=1500 --name=var_log --vgname=vg_system --fsoptions="nodev,nosuid,noexec"
logvol /var/log/audit --fstype="xfs" --size=500 --name=var_log_audit --vgname=vg_system --fsoptions="nodev,nosuid,noexec"
# Reboot the system after installation.
reboot
%packages --retries 5 --timeout 20
@core
%end
%post
%end