VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/ol9_ks.cfg@ 101437

Last change on this file since 101437 was 101351, checked in by vboxsync, 13 months ago

Unattended: bugref:10530. Adapting kickstart file and kernel command line arguments to the new syntax introduced with OL9.

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