1 | #platform=x86, AMD64, or Intel EM64T
|
---|
2 | #version=DEVEL
|
---|
3 |
|
---|
4 | # Firewall configuration
|
---|
5 | firewall --disabled
|
---|
6 |
|
---|
7 | # Install OS instead of upgrade
|
---|
8 | install
|
---|
9 |
|
---|
10 | # Use CDROM installation media
|
---|
11 | cdrom
|
---|
12 |
|
---|
13 | # Root password
|
---|
14 | rootpw --plaintext @@VBOX_INSERT_ROOT_PASSWORD_SH@@
|
---|
15 |
|
---|
16 | # System authorization information
|
---|
17 | auth --useshadow --passalgo=sha512
|
---|
18 |
|
---|
19 | # Use text mode install
|
---|
20 | text
|
---|
21 |
|
---|
22 | # System keyboard
|
---|
23 | keyboard us
|
---|
24 |
|
---|
25 | # System language
|
---|
26 | lang @@VBOX_INSERT_LOCALE@@
|
---|
27 |
|
---|
28 | # Disable the unsupported hardware popup (vmmdev?).
|
---|
29 | # This has been removed from kickstart file format as of OL8
|
---|
30 | #unsupported_hardware
|
---|
31 |
|
---|
32 | # SELinux configuration
|
---|
33 | selinux --enforcing
|
---|
34 |
|
---|
35 | # Installation logging level
|
---|
36 | logging --level=info
|
---|
37 |
|
---|
38 | # System timezone
|
---|
39 | timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
40 |
|
---|
41 | # Network information
|
---|
42 | network --bootproto=dhcp --device=link --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
|
---|
43 |
|
---|
44 | # System bootloader configuration
|
---|
45 | bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
|
---|
46 | zerombr
|
---|
47 |
|
---|
48 | # Partition clearing information
|
---|
49 | clearpart --all --initlabel
|
---|
50 |
|
---|
51 | # Disk partitioning information
|
---|
52 | part / --fstype ext4 --size 6000 --grow --asprimary
|
---|
53 | part swap --size 1024
|
---|
54 |
|
---|
55 | #Initial user
|
---|
56 | user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@ --plaintext
|
---|
57 |
|
---|
58 | # Reboot after installation
|
---|
59 | # Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
|
---|
60 | reboot --eject
|
---|
61 |
|
---|
62 | # Packages. We currently ignore missing packages/groups here to keep things simpler.
|
---|
63 | %packages --ignoremissing
|
---|
64 | @base
|
---|
65 | @core
|
---|
66 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
67 | @development
|
---|
68 | @basic-desktop
|
---|
69 | @desktop-debugging
|
---|
70 | @desktop-platform
|
---|
71 | @fonts
|
---|
72 | @general-desktop
|
---|
73 | @graphical-admin-tools
|
---|
74 | @remote-desktop-clients
|
---|
75 | @x11
|
---|
76 | @@VBOX_COND_END@@
|
---|
77 |
|
---|
78 | # Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible
|
---|
79 | # to install anything from the post script:
|
---|
80 | kernel-headers
|
---|
81 | kernel-devel
|
---|
82 | glibc-devel
|
---|
83 | glibc-headers
|
---|
84 | gcc
|
---|
85 | @@VBOX_COND[${GUEST_OS_VERSION} vgt 8.0.0]@@
|
---|
86 | elfutils-libelf-devel
|
---|
87 | @@VBOX_COND_END@@
|
---|
88 | dkms
|
---|
89 | make
|
---|
90 | bzip2
|
---|
91 | perl
|
---|
92 |
|
---|
93 | #Package cloud-init is needed for possible automation the initial setup of virtual machine
|
---|
94 | cloud-init
|
---|
95 |
|
---|
96 | %end
|
---|
97 |
|
---|
98 | # Post install happens in a different script.
|
---|
99 | # Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
|
---|
100 | # and apparently there isn't any way to be certain that anaconda didn't unmount it already.
|
---|
101 | %post --nochroot --log=/mnt/sysimage/root/ks-post.log
|
---|
102 | df -h
|
---|
103 | mkdir -p /tmp/vboxcdrom
|
---|
104 | mount /dev/cdrom /tmp/vboxcdrom
|
---|
105 | cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
|
---|
106 | chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
|
---|
107 | /bin/bash /mnt/sysimage/root/vboxpostinstall.sh --rhel
|
---|
108 | umount /tmp/vboxcdrom
|
---|
109 | %end
|
---|