[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
|
---|
[68201] | 26 | lang @@VBOX_INSERT_LOCALE@@
|
---|
[67881] | 27 |
|
---|
[86269] | 28 | # Disable the unsupported hardware popup (vmmdev?).
|
---|
[68203] | 29 | #unsupported_hardware
|
---|
[68202] | 30 |
|
---|
[67881] | 31 | # SELinux configuration
|
---|
| 32 | selinux --enforcing
|
---|
| 33 |
|
---|
| 34 | # Installation logging level
|
---|
| 35 | logging --level=info
|
---|
| 36 |
|
---|
| 37 | # System timezone
|
---|
[68201] | 38 | timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
[67881] | 39 |
|
---|
| 40 | # Network information
|
---|
[86269] | 41 | network --bootproto=dhcp --device=link --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
|
---|
[67881] | 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
|
---|
[69387] | 51 | part / --fstype ext4 --size 6000 --grow --asprimary
|
---|
| 52 | part swap --size 1024
|
---|
[67881] | 53 |
|
---|
| 54 | #Initial user
|
---|
[86269] | 55 | user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@ --plaintext
|
---|
[67881] | 56 |
|
---|
| 57 | # Reboot after installation
|
---|
[68201] | 58 | # Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
|
---|
| 59 | reboot --eject
|
---|
[67881] | 60 |
|
---|
[68201] | 61 | # Packages. We currently ignore missing packages/groups here to keep things simpler.
|
---|
| 62 | %packages --ignoremissing
|
---|
[67881] | 63 | @base
|
---|
| 64 | @core
|
---|
[68201] | 65 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
[67881] | 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
|
---|
[68201] | 75 | @@VBOX_COND_END@@
|
---|
[67881] | 76 |
|
---|
[68201] | 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
|
---|
[93954] | 84 | @@VBOX_COND[${GUEST_OS_VERSION} vgt 8.0.0]@@
|
---|
[86269] | 85 | elfutils-libelf-devel
|
---|
[86659] | 86 | @@VBOX_COND_END@@
|
---|
[68201] | 87 | dkms
|
---|
| 88 | make
|
---|
| 89 | bzip2
|
---|
| 90 | perl
|
---|
| 91 |
|
---|
[87895] | 92 | #Package cloud-init is needed for possible automation the initial setup of virtual machine
|
---|
| 93 | cloud-init
|
---|
| 94 |
|
---|
[67881] | 95 | %end
|
---|
| 96 |
|
---|
[68201] | 97 | # Post install happens in a different script.
|
---|
| 98 | # Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
|
---|
| 99 | # and apparently there isn't any way to be certain that anaconda didn't unmount it already.
|
---|
| 100 | %post --nochroot --log=/mnt/sysimage/root/ks-post.log
|
---|
| 101 | df -h
|
---|
| 102 | mkdir -p /tmp/vboxcdrom
|
---|
| 103 | mount /dev/cdrom /tmp/vboxcdrom
|
---|
| 104 | cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
|
---|
| 105 | chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
|
---|
| 106 | /bin/bash /mnt/sysimage/root/vboxpostinstall.sh --rhel
|
---|
| 107 | umount /tmp/vboxcdrom
|
---|
[67881] | 108 | %end
|
---|