[67881] | 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
|
---|
[68202] | 26 | lang @@VBOX_INSERT_LOCALE@@
|
---|
[67881] | 27 |
|
---|
| 28 | # Disable the unsupported hardware popup (vmmdev?).
|
---|
[101356] | 29 | # This has been removed from kickstart file format as of OL8
|
---|
| 30 | #unsupported_hardware
|
---|
[67881] | 31 |
|
---|
| 32 | # SELinux configuration
|
---|
| 33 | selinux --enforcing
|
---|
| 34 |
|
---|
| 35 | # Installation logging level
|
---|
| 36 | logging --level=info
|
---|
| 37 |
|
---|
| 38 | # System timezone
|
---|
[68202] | 39 | timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
[67881] | 40 |
|
---|
| 41 | # Network information
|
---|
[86269] | 42 | network --bootproto=dhcp --device=link --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
|
---|
[67881] | 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
|
---|
[69387] | 52 | part / --fstype ext4 --size 6000 --grow --asprimary
|
---|
| 53 | part swap --size 1024
|
---|
[67881] | 54 |
|
---|
| 55 | #Initial user
|
---|
[86269] | 56 | user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@ --plaintext
|
---|
[67881] | 57 |
|
---|
| 58 | # Reboot after installation
|
---|
[68202] | 59 | # Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
|
---|
| 60 | reboot --eject
|
---|
[67881] | 61 |
|
---|
[68202] | 62 | # Packages. We currently ignore missing packages/groups here to keep things simpler.
|
---|
| 63 | %packages --ignoremissing
|
---|
[67881] | 64 | @base
|
---|
| 65 | @core
|
---|
[68202] | 66 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
[67881] | 67 | @development
|
---|
[68202] | 68 | @basic-desktop
|
---|
[67881] | 69 | @desktop-debugging
|
---|
[68202] | 70 | @desktop-platform
|
---|
[67881] | 71 | @fonts
|
---|
[68202] | 72 | @general-desktop
|
---|
[67881] | 73 | @graphical-admin-tools
|
---|
| 74 | @remote-desktop-clients
|
---|
| 75 | @x11
|
---|
[68202] | 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
|
---|
[93954] | 85 | @@VBOX_COND[${GUEST_OS_VERSION} vgt 8.0.0]@@
|
---|
[86269] | 86 | elfutils-libelf-devel
|
---|
[86659] | 87 | @@VBOX_COND_END@@
|
---|
[68202] | 88 | dkms
|
---|
| 89 | make
|
---|
| 90 | bzip2
|
---|
| 91 | perl
|
---|
| 92 |
|
---|
[87895] | 93 | #Package cloud-init is needed for possible automation the initial setup of virtual machine
|
---|
| 94 | cloud-init
|
---|
| 95 |
|
---|
[67881] | 96 | %end
|
---|
| 97 |
|
---|
[68202] | 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
|
---|
[67881] | 109 | %end
|
---|