VirtualBox

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

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

Main,Installer: Made unattended installation work for rhel3 and friends.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.6 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# 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
53timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
54
55# System bootloader configuration
56bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
57zerombr
58
59# Partition clearing information
60clearpart --all --initlabel
61
62# Disk partitioning information (rhel5: no ext4, so use ext3)
63part / --fstype ext3 --size 6000 --grow --asprimary
64part 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.
71reboot --eject
72
73# Packages. We currently ignore missing packages/groups here to keep things simpler.
74%packages --ignoremissing
75grub
76kernel
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):
100kernel-source
101kernel-headers
102kernel-devel
103glibc-devel
104glibc-headers
105gcc
106dkms
107make
108bzip2
109perl
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
116mkdir -p /tmp/vboxcdrom
117mount -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
128df -h
129cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
130chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
131/bin/sh /mnt/sysimage/root/vboxpostinstall.sh --rhel
132umount /tmp/vboxcdrom
133rmdir /tmp/vboxcdrom
134# %end - rhel5 does not like this.
135
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