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 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
46 | # rhel3 wants xconfig.
|
---|
47 | # TODO: Dunno VRAM size, is that a problem? --videoram 32768
|
---|
48 | xconfig --card "VESA driver (generic)" --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 24 --startxonboot --defaultdesktop gnome
|
---|
49 | @@VBOX_COND_END@@
|
---|
50 |
|
---|
51 | # SELinux configuration
|
---|
52 | # rhel3: disable selinux
|
---|
53 | # selinux --enforcing
|
---|
54 |
|
---|
55 | # Installation logging level
|
---|
56 | #rhel4 does not grok: logging --level=info
|
---|
57 |
|
---|
58 | # System timezone
|
---|
59 | timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
60 |
|
---|
61 | # System bootloader configuration
|
---|
62 | bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
|
---|
63 | zerombr
|
---|
64 |
|
---|
65 | # Partition clearing information
|
---|
66 | clearpart --all --initlabel
|
---|
67 |
|
---|
68 | # Disk partitioning information (rhel5: no ext4, so use ext3)
|
---|
69 | part / --fstype ext3 --size 6000 --grow --asprimary
|
---|
70 | part swap --size 1024
|
---|
71 |
|
---|
72 | #Initial user
|
---|
73 | #rhel4 does not grok, done in welcome sequence: user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@
|
---|
74 |
|
---|
75 | # Reboot after installation
|
---|
76 | # Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
|
---|
77 | reboot --eject
|
---|
78 |
|
---|
79 | # Packages. We currently ignore missing packages/groups here to keep things simpler.
|
---|
80 | %packages --ignoremissing
|
---|
81 | grub
|
---|
82 | kernel
|
---|
83 | @ base
|
---|
84 | @ core
|
---|
85 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
86 | @ admin-tools
|
---|
87 | @ development
|
---|
88 | @ editors
|
---|
89 | @ text-internet
|
---|
90 | @ base-x
|
---|
91 | @ graphics
|
---|
92 | @ basic-desktop
|
---|
93 | @ general-desktop
|
---|
94 | @ gnome-desktop
|
---|
95 | @ desktop-platform
|
---|
96 | @ fonts
|
---|
97 | @ graphical-admin-tools
|
---|
98 | @ graphical-internet
|
---|
99 | @ remote-desktop-clients
|
---|
100 | @ sound-and-video
|
---|
101 | @ x11
|
---|
102 | @@VBOX_COND_END@@
|
---|
103 |
|
---|
104 | # Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible
|
---|
105 | # to install anything from the post script (rhel3 seems to need kernel-sources):
|
---|
106 | kernel-source
|
---|
107 | kernel-headers
|
---|
108 | kernel-devel
|
---|
109 | glibc-devel
|
---|
110 | glibc-headers
|
---|
111 | gcc
|
---|
112 | dkms
|
---|
113 | make
|
---|
114 | bzip2
|
---|
115 | perl
|
---|
116 | # %end - rhel5 does not like this.
|
---|
117 |
|
---|
118 |
|
---|
119 | # Pre install script for mounting the cdrom, to make sure it cannot be ejcted.
|
---|
120 | # See https://bugzilla.redhat.com/show_bug.cgi?id=239002
|
---|
121 | %pre
|
---|
122 | mkdir -p /tmp/vboxcdrom
|
---|
123 | 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
|
---|
124 | # %end - rhel5 does not like this.
|
---|
125 |
|
---|
126 |
|
---|
127 | # Post install happens in a different script.
|
---|
128 | # Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
|
---|
129 | # and apparently there isn't any way to be certain that anaconda didn't unmount it already.
|
---|
130 | # rhel5: There is not /bin/bash, so use /bin/sh
|
---|
131 | # rhel5: There is no /dev/cdrom, so try use /dev/hdc and /dev/sdb.
|
---|
132 | # rhel3: no --log option
|
---|
133 | %post --nochroot
|
---|
134 | df -h
|
---|
135 | cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
|
---|
136 | chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
|
---|
137 | /bin/sh /mnt/sysimage/root/vboxpostinstall.sh --rhel
|
---|
138 | umount /tmp/vboxcdrom
|
---|
139 | rmdir /tmp/vboxcdrom
|
---|
140 | # %end - rhel5 does not like this.
|
---|
141 |
|
---|