1 | # Template for RHEL5 and derivatives.
|
---|
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 |
|
---|
14 | # Root password (rhel5 not --plaintext groks)
|
---|
15 | rootpw @@VBOX_INSERT_ROOT_PASSWORD_SH@@
|
---|
16 |
|
---|
17 | # System authorization information (rhel5: no --passalgo=sha512)
|
---|
18 | auth --useshadow
|
---|
19 |
|
---|
20 | # Use text mode install
|
---|
21 | text
|
---|
22 |
|
---|
23 | # System keyboard
|
---|
24 | keyboard us
|
---|
25 |
|
---|
26 | # System language
|
---|
27 | lang @@VBOX_INSERT_LOCALE@@
|
---|
28 | # rhel4 needs:
|
---|
29 | langsupport --default=@@VBOX_INSERT_LOCALE@@.UTF-8 @@VBOX_INSERT_LOCALE@@.UTF-8
|
---|
30 |
|
---|
31 |
|
---|
32 | # SELinux configuration
|
---|
33 | selinux --enforcing
|
---|
34 |
|
---|
35 | # Installation logging level
|
---|
36 | #rhel4 does not grok: 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=eth0 --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 (rhel5: no ext4, so use ext3)
|
---|
52 | part / --fstype ext3 --size 6000 --grow --asprimary
|
---|
53 | part swap --size 1024
|
---|
54 |
|
---|
55 | #Initial user
|
---|
56 | #rhel4 does not grok, done in welcome sequence: user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@
|
---|
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 | @ 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
|
---|
83 | @@VBOX_COND_END@@
|
---|
84 |
|
---|
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
|
---|
96 | # %end - rhel5 does not like this.
|
---|
97 |
|
---|
98 |
|
---|
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
|
---|
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
|
---|
104 | # %end - rhel5 does not like this.
|
---|
105 |
|
---|
106 |
|
---|
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.
|
---|
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.
|
---|
112 | %post --nochroot --log=/mnt/sysimage/root/ks-post.log
|
---|
113 | df -h 1>&2
|
---|
114 | cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
|
---|
115 | chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
|
---|
116 | /bin/sh /mnt/sysimage/root/vboxpostinstall.sh --rhel
|
---|
117 | umount /tmp/vboxcdrom
|
---|
118 | rmdir /tmp/vboxcdrom
|
---|
119 | # %end - rhel5 does not like this.
|
---|
120 |
|
---|