2013-10-30 18:06:37 +00:00
|
|
|
# Minimal Disk Image
|
|
|
|
#
|
|
|
|
sshpw --username=root --plaintext randOmStrinGhERE
|
|
|
|
# Firewall configuration
|
|
|
|
firewall --enabled
|
|
|
|
# Use network installation
|
2017-05-17 20:34:31 +00:00
|
|
|
url --url=http://repo/rhel7.4/Server/os
|
|
|
|
repo --name=optional --baseurl=http://repo/rhel7.4/Server/optional/os
|
2013-10-30 18:06:37 +00:00
|
|
|
|
|
|
|
# Root password
|
|
|
|
rootpw --plaintext removethispw
|
|
|
|
# Network information
|
|
|
|
network --bootproto=dhcp --onboot=on --activate
|
|
|
|
# System authorization information
|
|
|
|
auth --useshadow --enablemd5
|
|
|
|
# System keyboard
|
|
|
|
keyboard --xlayouts=us --vckeymap=us
|
|
|
|
# System language
|
|
|
|
lang en_US.UTF-8
|
|
|
|
# SELinux configuration
|
|
|
|
selinux --enforcing
|
|
|
|
# Installation logging level
|
|
|
|
logging --level=info
|
|
|
|
# Shutdown after installation
|
|
|
|
shutdown
|
|
|
|
# System timezone
|
|
|
|
timezone US/Eastern
|
|
|
|
# System bootloader configuration
|
|
|
|
bootloader --location=mbr
|
|
|
|
# Clear the Master Boot Record
|
|
|
|
zerombr
|
|
|
|
# Partition clearing information
|
|
|
|
clearpart --all
|
|
|
|
# Disk partitioning information
|
|
|
|
part / --fstype="ext4" --size=4000
|
|
|
|
part swap --size=1000
|
|
|
|
|
|
|
|
%post
|
|
|
|
# Remove root password
|
|
|
|
passwd -d root > /dev/null
|
2015-09-01 16:39:03 +00:00
|
|
|
|
|
|
|
# Remove random-seed
|
|
|
|
rm /var/lib/systemd/random-seed
|
2013-10-30 18:06:37 +00:00
|
|
|
%end
|
|
|
|
|
|
|
|
%packages
|
|
|
|
@core
|
|
|
|
kernel
|
|
|
|
memtest86+
|
2017-06-15 17:08:29 +00:00
|
|
|
efibootmgr
|
2013-10-30 18:06:37 +00:00
|
|
|
grub2-efi
|
|
|
|
grub2
|
|
|
|
shim
|
|
|
|
syslinux
|
|
|
|
-dracut-config-rescue
|
2017-06-15 17:08:29 +00:00
|
|
|
|
|
|
|
# Boot on 32bit UEFI
|
|
|
|
shim-ia32
|
|
|
|
|
|
|
|
# NOTE: To build a bootable UEFI disk image livemedia-creator needs to be
|
|
|
|
# run on a UEFI system or virt.
|
2013-10-30 18:06:37 +00:00
|
|
|
%end
|