VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/ol8_ks.cfg@ 102157

Last change on this file since 102157 was 101356, checked in by vboxsync, 14 months ago

Unattended: ​bugref:10530. Looks like OL8 kickstart used to include a removed command.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 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# Disable the unsupported hardware popup (vmmdev?).
29# This has been removed from kickstart file format as of OL8
30#unsupported_hardware
31
32# SELinux configuration
33selinux --enforcing
34
35# Installation logging level
36logging --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=link --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
52part / --fstype ext4 --size 6000 --grow --asprimary
53part swap --size 1024
54
55#Initial user
56user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@ --plaintext
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@development
68@basic-desktop
69@desktop-debugging
70@desktop-platform
71@fonts
72@general-desktop
73@graphical-admin-tools
74@remote-desktop-clients
75@x11
76@@VBOX_COND_END@@
77
78# Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible
79# to install anything from the post script:
80kernel-headers
81kernel-devel
82glibc-devel
83glibc-headers
84gcc
85@@VBOX_COND[${GUEST_OS_VERSION} vgt 8.0.0]@@
86elfutils-libelf-devel
87@@VBOX_COND_END@@
88dkms
89make
90bzip2
91perl
92
93#Package cloud-init is needed for possible automation the initial setup of virtual machine
94cloud-init
95
96%end
97
98# Post install happens in a different script.
99# Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
100# and apparently there isn't any way to be certain that anaconda didn't unmount it already.
101%post --nochroot --log=/mnt/sysimage/root/ks-post.log
102df -h
103mkdir -p /tmp/vboxcdrom
104mount /dev/cdrom /tmp/vboxcdrom
105cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
106chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
107/bin/bash /mnt/sysimage/root/vboxpostinstall.sh --rhel
108umount /tmp/vboxcdrom
109%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