VirtualBox

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

Last change on this file was 101356, checked in by vboxsync, 8 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
RevLine 
[67881]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
[68202]26lang @@VBOX_INSERT_LOCALE@@
[67881]27
28# Disable the unsupported hardware popup (vmmdev?).
[101356]29# This has been removed from kickstart file format as of OL8
30#unsupported_hardware
[67881]31
32# SELinux configuration
33selinux --enforcing
34
35# Installation logging level
36logging --level=info
37
38# System timezone
[68202]39timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
[67881]40
41# Network information
[86269]42network --bootproto=dhcp --device=link --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
[67881]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
[69387]52part / --fstype ext4 --size 6000 --grow --asprimary
53part swap --size 1024
[67881]54
55#Initial user
[86269]56user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@ --plaintext
[67881]57
58# Reboot after installation
[68202]59# Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
60reboot --eject
[67881]61
[68202]62# Packages. We currently ignore missing packages/groups here to keep things simpler.
63%packages --ignoremissing
[67881]64@base
65@core
[68202]66@@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
[67881]67@development
[68202]68@basic-desktop
[67881]69@desktop-debugging
[68202]70@desktop-platform
[67881]71@fonts
[68202]72@general-desktop
[67881]73@graphical-admin-tools
74@remote-desktop-clients
75@x11
[68202]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
[93954]85@@VBOX_COND[${GUEST_OS_VERSION} vgt 8.0.0]@@
[86269]86elfutils-libelf-devel
[86659]87@@VBOX_COND_END@@
[68202]88dkms
89make
90bzip2
91perl
92
[87895]93#Package cloud-init is needed for possible automation the initial setup of virtual machine
94cloud-init
95
[67881]96%end
97
[68202]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
[67881]109%end
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use