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 | #unsupported_hardware
|
---|
30 |
|
---|
31 | # SELinux configuration
|
---|
32 | selinux --enforcing
|
---|
33 |
|
---|
34 | # Installation logging level
|
---|
35 | logging --level=info
|
---|
36 |
|
---|
37 | # System timezone
|
---|
38 | timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
39 |
|
---|
40 | # Network information
|
---|
41 | network --bootproto=dhcp --device=link --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
|
---|
42 |
|
---|
43 | # System bootloader configuration
|
---|
44 | bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
|
---|
45 | zerombr
|
---|
46 |
|
---|
47 | # Partition clearing information
|
---|
48 | clearpart --all --initlabel
|
---|
49 |
|
---|
50 | # Disk partitioning information
|
---|
51 | part / --fstype ext4 --size 6000 --grow --asprimary
|
---|
52 | part swap --size 1024
|
---|
53 |
|
---|
54 | #Initial user
|
---|
55 | user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@ --plaintext
|
---|
56 |
|
---|
57 | # Reboot after installation
|
---|
58 | # Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
|
---|
59 | reboot --eject
|
---|
60 |
|
---|
61 | # Packages. We currently ignore missing packages/groups here to keep things simpler.
|
---|
62 | %packages --ignoremissing
|
---|
63 | @base
|
---|
64 | @core
|
---|
65 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
66 | @development
|
---|
67 | @basic-desktop
|
---|
68 | @desktop-debugging
|
---|
69 | @desktop-platform
|
---|
70 | @fonts
|
---|
71 | @general-desktop
|
---|
72 | @graphical-admin-tools
|
---|
73 | @remote-desktop-clients
|
---|
74 | @x11
|
---|
75 | @@VBOX_COND_END@@
|
---|
76 |
|
---|
77 | # Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible
|
---|
78 | # to install anything from the post script:
|
---|
79 | kernel-headers
|
---|
80 | kernel-devel
|
---|
81 | glibc-devel
|
---|
82 | glibc-headers
|
---|
83 | gcc
|
---|
84 | @@VBOX_COND_GUEST_VERSION[>8.0.0]@@
|
---|
85 | elfutils-libelf-devel
|
---|
86 | @@VBOX_COND_END@@
|
---|
87 | dkms
|
---|
88 | make
|
---|
89 | bzip2
|
---|
90 | perl
|
---|
91 |
|
---|
92 | %end
|
---|
93 |
|
---|
94 | # Post install happens in a different script.
|
---|
95 | # Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
|
---|
96 | # and apparently there isn't any way to be certain that anaconda didn't unmount it already.
|
---|
97 | %post --nochroot --log=/mnt/sysimage/root/ks-post.log
|
---|
98 | df -h
|
---|
99 | mkdir -p /tmp/vboxcdrom
|
---|
100 | mount /dev/cdrom /tmp/vboxcdrom
|
---|
101 | cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
|
---|
102 | chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
|
---|
103 | /bin/bash /mnt/sysimage/root/vboxpostinstall.sh --rhel
|
---|
104 | umount /tmp/vboxcdrom
|
---|
105 | %end
|
---|
106 |
|
---|