-
Notifications
You must be signed in to change notification settings - Fork 8
/
kickstart.ks
87 lines (65 loc) · 1.65 KB
/
kickstart.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# System language
lang en_US.UTF-8
# Use text mode install
text
# Keyboard layouts
keyboard us
# Use network installation
url --url="NETWORK_INSTALL_URL"
# Accept the license
eula --agreed
# System timezone
timezone --utc Asia/Jerusalem
# Root password
rootpw redhat
# Disable firewall
firewall --disabled
# System authorization information
auth --enableshadow --passalgo=sha512
# Do not configure the X Window System
skipx
# Disable the Setup Agent on first boot
firstboot --disabled
# Network information
network --bootproto=dhcp --hostname=bluefield-soc.mlx --device=eth0 --activate
# Bootloader/partition configuration
ignoredisk --only-use=mmcblk0
clearpart --all --initlabel --drives=mmcblk0
autopart --type=plain
bootloader --append="crashkernel=auto console=ttyAMA1 console=hvc0 console=ttyAMA0 earlycon=pl011,0x01000000 earlycon=pl011,0x01800000" --location=mbr --boot-drive=mmcblk0
# Reboot after installation
reboot
%packages --ignoremissing
@base
@core
@Development Tools
python3-devel
atk
cairo
tcl
tk
nfs-utils
chrony
vim
ethtool
git
grubby
xterm
NetworkManager-config-server
%end
%post --interpreter /bin/bash
systemctl set-default multi-user.target
systemctl disable initial-setup-graphical.service
# Necessary for accessing virtual console via rshim
systemctl enable serial-getty@hvc0
systemctl start serial-getty@hvc0
systemctl enable [email protected]
systemctl start [email protected]
systemctl enable [email protected]
systemctl start [email protected]
systemctl disable firewalld
dnf update
systemctl stop chronyd.service
chronyd -q 'server clock.redhat.com iburst'
hwclock --systohc --localtime
%end