VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/rhel3_ks.cfg@ 72064

Last change on this file since 72064 was 71071, checked in by vboxsync, 7 years ago

rhel3_ks.cfg: Need xconfig for non-minimal installation.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
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
11text
12
13# Install OS instead of upgrade
14install
15
16# System language
17lang @@VBOX_INSERT_LOCALE@@.UTF-8
18
19# rhel4+rhel3 needs:
20langsupport --default @@VBOX_INSERT_LOCALE@@.UTF-8 @@VBOX_INSERT_LOCALE@@.UTF-8
21
22# Use CDROM installation media
23cdrom
24
25# System authorization information (rhel5: no --passalgo=sha512)
26#auth --useshadow
27authconfig --enableshadow --enablemd5
28
29# Root password (rhel5 not --plaintext groks)
30rootpw @@VBOX_INSERT_ROOT_PASSWORD_SH@@
31
32# Network information
33# rhel3: doesn't like --onboot=on.
34network --bootproto=dhcp --device=eth0 --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
35
36# Firewall configuration
37firewall --disabled
38
39# System keyboard
40keyboard us
41
42# rhel3 wants mouse config.
43mouse 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
48xconfig --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
59timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
60
61# System bootloader configuration
62bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
63zerombr
64
65# Partition clearing information
66clearpart --all --initlabel
67
68# Disk partitioning information (rhel5: no ext4, so use ext3)
69part / --fstype ext3 --size 6000 --grow --asprimary
70part 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.
77reboot --eject
78
79# Packages. We currently ignore missing packages/groups here to keep things simpler.
80%packages --ignoremissing
81grub
82kernel
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):
106kernel-source
107kernel-headers
108kernel-devel
109glibc-devel
110glibc-headers
111gcc
112dkms
113make
114bzip2
115perl
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
122mkdir -p /tmp/vboxcdrom
123mount -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
134df -h
135cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
136chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
137/bin/sh /mnt/sysimage/root/vboxpostinstall.sh --rhel
138umount /tmp/vboxcdrom
139rmdir /tmp/vboxcdrom
140# %end - rhel5 does not like this.
141
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette