1 | #
|
---|
2 | # Template for RHEL3 and derivatives.
|
---|
3 | #
|
---|
4 | # Note! RHEL3 kickstart typically just hangs if it finds something it doesn't like.
|
---|
5 | # So, all changes to this file must be tested!
|
---|
6 | #
|
---|
7 | # N.B! AHCI is not supported by RHEL3
|
---|
8 | #
|
---|
9 |
|
---|
10 | # Use text mode install
|
---|
11 | text
|
---|
12 |
|
---|
13 | # Install OS instead of upgrade
|
---|
14 | install
|
---|
15 |
|
---|
16 | # System language
|
---|
17 | lang @@VBOX_INSERT_LOCALE@@.UTF-8
|
---|
18 |
|
---|
19 | # rhel4+rhel3 needs:
|
---|
20 | langsupport --default @@VBOX_INSERT_LOCALE@@.UTF-8 @@VBOX_INSERT_LOCALE@@.UTF-8
|
---|
21 |
|
---|
22 | # Use CDROM installation media
|
---|
23 | cdrom
|
---|
24 |
|
---|
25 | # System authorization information (rhel5: no --passalgo=sha512)
|
---|
26 | #auth --useshadow
|
---|
27 | authconfig --enableshadow --enablemd5
|
---|
28 |
|
---|
29 | # Root password (rhel5 not --plaintext groks)
|
---|
30 | rootpw @@VBOX_INSERT_ROOT_PASSWORD_SH@@
|
---|
31 |
|
---|
32 | # Network information
|
---|
33 | # rhel3: doesn't like --onboot=on.
|
---|
34 | network --bootproto=dhcp --device=eth0 --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
|
---|
35 |
|
---|
36 | # Firewall configuration
|
---|
37 | firewall --disabled
|
---|
38 |
|
---|
39 | # System keyboard
|
---|
40 | keyboard us
|
---|
41 |
|
---|
42 | # rhel3 wants mouse config.
|
---|
43 | mouse genericwheelps/2 --device psaux
|
---|
44 |
|
---|
45 | # SELinux configuration
|
---|
46 | # rhel3: disable selinux
|
---|
47 | # selinux --enforcing
|
---|
48 |
|
---|
49 | # Installation logging level
|
---|
50 | #rhel4 does not grok: logging --level=info
|
---|
51 |
|
---|
52 | # System timezone
|
---|
53 | timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
54 |
|
---|
55 | # System bootloader configuration
|
---|
56 | bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
|
---|
57 | zerombr
|
---|
58 |
|
---|
59 | # Partition clearing information
|
---|
60 | clearpart --all --initlabel
|
---|
61 |
|
---|
62 | # Disk partitioning information (rhel5: no ext4, so use ext3)
|
---|
63 | part / --fstype ext3 --size 6000 --grow --asprimary
|
---|
64 | part swap --size 1024
|
---|
65 |
|
---|
66 | #Initial user
|
---|
67 | #rhel4 does not grok, done in welcome sequence: user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@
|
---|
68 |
|
---|
69 | # Reboot after installation
|
---|
70 | # Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
|
---|
71 | reboot --eject
|
---|
72 |
|
---|
73 | # Packages. We currently ignore missing packages/groups here to keep things simpler.
|
---|
74 | %packages --ignoremissing
|
---|
75 | grub
|
---|
76 | kernel
|
---|
77 | @ base
|
---|
78 | @ core
|
---|
79 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
80 | @ admin-tools
|
---|
81 | @ development
|
---|
82 | @ editors
|
---|
83 | @ text-internet
|
---|
84 | @ base-x
|
---|
85 | @ graphics
|
---|
86 | @ basic-desktop
|
---|
87 | @ general-desktop
|
---|
88 | @ gnome-desktop
|
---|
89 | @ desktop-platform
|
---|
90 | @ fonts
|
---|
91 | @ graphical-admin-tools
|
---|
92 | @ graphical-internet
|
---|
93 | @ remote-desktop-clients
|
---|
94 | @ sound-and-video
|
---|
95 | @ x11
|
---|
96 | @@VBOX_COND_END@@
|
---|
97 |
|
---|
98 | # Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible
|
---|
99 | # to install anything from the post script (rhel3 seems to need kernel-sources):
|
---|
100 | kernel-source
|
---|
101 | kernel-headers
|
---|
102 | kernel-devel
|
---|
103 | glibc-devel
|
---|
104 | glibc-headers
|
---|
105 | gcc
|
---|
106 | dkms
|
---|
107 | make
|
---|
108 | bzip2
|
---|
109 | perl
|
---|
110 | # %end - rhel5 does not like this.
|
---|
111 |
|
---|
112 |
|
---|
113 | # Pre install script for mounting the cdrom, to make sure it cannot be ejcted.
|
---|
114 | # See https://bugzilla.redhat.com/show_bug.cgi?id=239002
|
---|
115 | %pre
|
---|
116 | mkdir -p /tmp/vboxcdrom
|
---|
117 | 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
|
---|
118 | # %end - rhel5 does not like this.
|
---|
119 |
|
---|
120 |
|
---|
121 | # Post install happens in a different script.
|
---|
122 | # Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
|
---|
123 | # and apparently there isn't any way to be certain that anaconda didn't unmount it already.
|
---|
124 | # rhel5: There is not /bin/bash, so use /bin/sh
|
---|
125 | # rhel5: There is no /dev/cdrom, so try use /dev/hdc and /dev/sdb.
|
---|
126 | # rhel3: no --log option
|
---|
127 | %post --nochroot
|
---|
128 | df -h
|
---|
129 | cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
|
---|
130 | chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
|
---|
131 | /bin/sh /mnt/sysimage/root/vboxpostinstall.sh --rhel
|
---|
132 | umount /tmp/vboxcdrom
|
---|
133 | rmdir /tmp/vboxcdrom
|
---|
134 | # %end - rhel5 does not like this.
|
---|
135 |
|
---|