VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/rhel4_ks.cfg@ 100842

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

Main,Installer: Made unattended installation work for rhel4 and friends. Special tweak needed for centos version detection.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1# Template for RHEL5 and derivatives.
2#platform=x86, AMD64, or Intel EM64T
3#version=DEVEL
4
5# Firewall configuration
6firewall --disabled
7
8# Install OS instead of upgrade
9install
10
11# Use CDROM installation media
12cdrom
13
14# Root password (rhel5 not --plaintext groks)
15rootpw @@VBOX_INSERT_ROOT_PASSWORD_SH@@
16
17# System authorization information (rhel5: no --passalgo=sha512)
18auth --useshadow
19
20# Use text mode install
21text
22
23# System keyboard
24keyboard us
25
26# System language
27lang @@VBOX_INSERT_LOCALE@@
28# rhel4 needs:
29langsupport --default=@@VBOX_INSERT_LOCALE@@.UTF-8 @@VBOX_INSERT_LOCALE@@.UTF-8
30
31
32# SELinux configuration
33selinux --enforcing
34
35# Installation logging level
36#rhel4 does not grok: logging --level=info
37
38# System timezone
39timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
40
41# Network information
42network --bootproto=dhcp --device=eth0 --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
43
44# System bootloader configuration
45bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
46zerombr
47
48# Partition clearing information
49clearpart --all --initlabel
50
51# Disk partitioning information (rhel5: no ext4, so use ext3)
52part / --fstype ext3 --size 6000 --grow --asprimary
53part 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.
60reboot --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:
87kernel-headers
88kernel-devel
89glibc-devel
90glibc-headers
91gcc
92dkms
93make
94bzip2
95perl
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
102mkdir -p /tmp/vboxcdrom
103mount -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
113df -h 1>&2
114cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
115chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
116/bin/sh /mnt/sysimage/root/vboxpostinstall.sh --rhel
117umount /tmp/vboxcdrom
118rmdir /tmp/vboxcdrom
119# %end - rhel5 does not like this.
120
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