VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/redhat67_ks.cfg@ 68203

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

fix

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1#platform=x86, AMD64, or Intel EM64T
2#version=DEVEL
3
4# Firewall configuration
5firewall --disabled
6
7# Install OS instead of upgrade
8install
9
10# Use CDROM installation media
11cdrom
12
13# Root password
14rootpw --plaintext @@VBOX_INSERT_ROOT_PASSWORD_SH@@
15
16# System authorization information
17auth --useshadow --passalgo=sha512
18
19# Use text mode install
20text
21
22# System keyboard
23keyboard us
24
25# System language
26lang @@VBOX_INSERT_LOCALE@@
27
28# OL 6.4 needs this, but it doesn't work with RHEL60.
29#unsupported_hardware
30
31# SELinux configuration
32selinux --enforcing
33
34# Installation logging level
35logging --level=info
36
37# System timezone
38timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
39
40# Network information
41network --bootproto=dhcp --device=eth0 --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
42
43# System bootloader configuration
44bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
45zerombr
46
47# Partition clearing information
48clearpart --all --initlabel
49
50# Disk partitioning information
51part / --fstype ext4 --size 6000 --grow --asprimary
52part swap --size 1024
53
54#Initial user
55user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@
56
57# Reboot after installation
58# Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
59reboot --eject
60
61# Packages. We currently ignore missing packages/groups here to keep things simpler.
62%packages --ignoremissing
63@base
64@core
65@@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
66@development
67@basic-desktop
68@desktop-debugging
69@desktop-platform
70@fonts
71@general-desktop
72@graphical-admin-tools
73@remote-desktop-clients
74@x11
75@@VBOX_COND_END@@
76
77# Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible
78# to install anything from the post script:
79kernel-headers
80kernel-devel
81glibc-devel
82glibc-headers
83gcc
84dkms
85make
86bzip2
87perl
88
89%end
90
91# Post install happens in a different script.
92# Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
93# and apparently there isn't any way to be certain that anaconda didn't unmount it already.
94%post --nochroot --log=/mnt/sysimage/root/ks-post.log
95df -h
96mkdir -p /tmp/vboxcdrom
97mount /dev/cdrom /tmp/vboxcdrom
98cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
99chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
100/bin/bash /mnt/sysimage/root/vboxpostinstall.sh --rhel
101umount /tmp/vboxcdrom
102%end
103
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