[71007] | 1 | # Template for RHEL5 and derivatives.
|
---|
[67881] | 2 | #platform=x86, AMD64, or Intel EM64T
|
---|
| 3 | #version=DEVEL
|
---|
| 4 |
|
---|
| 5 | # Firewall configuration
|
---|
| 6 | firewall --disabled
|
---|
| 7 |
|
---|
| 8 | # Install OS instead of upgrade
|
---|
| 9 | install
|
---|
| 10 |
|
---|
| 11 | # Use CDROM installation media
|
---|
| 12 | cdrom
|
---|
| 13 |
|
---|
[71007] | 14 | # Root password (rhel5 not --plaintext groks)
|
---|
| 15 | rootpw @@VBOX_INSERT_ROOT_PASSWORD_SH@@
|
---|
[67881] | 16 |
|
---|
[71007] | 17 | # System authorization information (rhel5: no --passalgo=sha512)
|
---|
| 18 | auth --useshadow
|
---|
[67881] | 19 |
|
---|
| 20 | # Use text mode install
|
---|
| 21 | text
|
---|
| 22 |
|
---|
| 23 | # System keyboard
|
---|
| 24 | keyboard us
|
---|
| 25 |
|
---|
| 26 | # System language
|
---|
[68201] | 27 | lang @@VBOX_INSERT_LOCALE@@
|
---|
[71011] | 28 | # rhel4 needs:
|
---|
| 29 | langsupport --default=@@VBOX_INSERT_LOCALE@@.UTF-8 @@VBOX_INSERT_LOCALE@@.UTF-8
|
---|
[67881] | 30 |
|
---|
[68202] | 31 |
|
---|
[67881] | 32 | # SELinux configuration
|
---|
| 33 | selinux --enforcing
|
---|
| 34 |
|
---|
| 35 | # Installation logging level
|
---|
[71011] | 36 | #rhel4 does not grok: logging --level=info
|
---|
[67881] | 37 |
|
---|
| 38 | # System timezone
|
---|
[68201] | 39 | timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
[67881] | 40 |
|
---|
| 41 | # Network information
|
---|
[68201] | 42 | network --bootproto=dhcp --device=eth0 --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 |
|
---|
[71007] | 51 | # Disk partitioning information (rhel5: no ext4, so use ext3)
|
---|
| 52 | part / --fstype ext3 --size 6000 --grow --asprimary
|
---|
[69387] | 53 | part swap --size 1024
|
---|
[67881] | 54 |
|
---|
| 55 | #Initial user
|
---|
[71011] | 56 | #rhel4 does not grok, done in welcome sequence: user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@
|
---|
[67881] | 57 |
|
---|
| 58 | # Reboot after installation
|
---|
[68201] | 59 | # Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
|
---|
| 60 | reboot --eject
|
---|
[67881] | 61 |
|
---|
[68201] | 62 | # Packages. We currently ignore missing packages/groups here to keep things simpler.
|
---|
| 63 | %packages --ignoremissing
|
---|
[71011] | 64 | @ base
|
---|
| 65 | @ core
|
---|
[68201] | 66 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
[71011] | 67 | @ admin-tools
|
---|
| 68 | @ development
|
---|
| 69 | @ editors
|
---|
| 70 | @ text-internet
|
---|
| 71 | @ base-x
|
---|
| 72 | @ graphics
|
---|
| 73 | @ basic-desktop
|
---|
| 74 | @ general-desktop
|
---|
| 75 | @ gnome-desktop
|
---|
| 76 | @ desktop-platform
|
---|
| 77 | @ fonts
|
---|
| 78 | @ graphical-admin-tools
|
---|
| 79 | @ graphical-internet
|
---|
| 80 | @ remote-desktop-clients
|
---|
| 81 | @ sound-and-video
|
---|
| 82 | @ x11
|
---|
[68201] | 83 | @@VBOX_COND_END@@
|
---|
[67881] | 84 |
|
---|
[68201] | 85 | # Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible
|
---|
| 86 | # to install anything from the post script:
|
---|
| 87 | kernel-headers
|
---|
| 88 | kernel-devel
|
---|
| 89 | glibc-devel
|
---|
| 90 | glibc-headers
|
---|
| 91 | gcc
|
---|
| 92 | dkms
|
---|
| 93 | make
|
---|
| 94 | bzip2
|
---|
| 95 | perl
|
---|
[71007] | 96 | # %end - rhel5 does not like this.
|
---|
[68201] | 97 |
|
---|
[67881] | 98 |
|
---|
[71007] | 99 | # Pre install script for mounting the cdrom, to make sure it cannot be ejcted.
|
---|
| 100 | # See https://bugzilla.redhat.com/show_bug.cgi?id=239002
|
---|
| 101 | %pre
|
---|
| 102 | mkdir -p /tmp/vboxcdrom
|
---|
[71011] | 103 | mount -t iso9660 /tmp/cdrom /tmp/vboxcdrom || mount -t iso9660 /dev/hdc /tmp/vboxcdrom || mount -t iso9660 /dev/scd0 /tmp/vboxcdrom || mount -t iso9660 /dev/sdb /tmp/vboxcdrom
|
---|
[71007] | 104 | # %end - rhel5 does not like this.
|
---|
| 105 |
|
---|
| 106 |
|
---|
[68201] | 107 | # Post install happens in a different script.
|
---|
| 108 | # Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
|
---|
| 109 | # and apparently there isn't any way to be certain that anaconda didn't unmount it already.
|
---|
[71007] | 110 | # rhel5: There is not /bin/bash, so use /bin/sh
|
---|
| 111 | # rhel5: There is no /dev/cdrom, so try use /dev/hdc and /dev/sdb.
|
---|
[68201] | 112 | %post --nochroot --log=/mnt/sysimage/root/ks-post.log
|
---|
[71007] | 113 | df -h 1>&2
|
---|
[68201] | 114 | cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
|
---|
| 115 | chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
|
---|
[71007] | 116 | /bin/sh /mnt/sysimage/root/vboxpostinstall.sh --rhel
|
---|
[68201] | 117 | umount /tmp/vboxcdrom
|
---|
[71007] | 118 | rmdir /tmp/vboxcdrom
|
---|
| 119 | # %end - rhel5 does not like this.
|
---|
[68201] | 120 |
|
---|