forked from msvsphere/cloud-images
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.7 KiB
74 lines
1.7 KiB
1 year ago
|
# MSVSphere 9 Generic Cloud image kickstart file
|
||
|
|
||
|
# TODO: change url to the kickstart one when we have it
|
||
|
url --url https://rsync.inferitos.ru/msvsphere/9.2/BaseOS/x86_64/os/
|
||
|
repo --name=BaseOS --baseurl=https://rsync.inferitos.ru/msvsphere/9.2/BaseOS/x86_64/os/
|
||
|
repo --name=AppStream --baseurl=https://rsync.inferitos.ru/msvsphere/9.2/AppStream/x86_64/os/
|
||
|
|
||
|
text
|
||
|
skipx
|
||
|
eula --agreed
|
||
|
firstboot --disabled
|
||
|
|
||
|
lang C.UTF-8
|
||
|
keyboard us
|
||
|
timezone UTC --utc
|
||
|
|
||
|
network --bootproto=dhcp
|
||
|
firewall --enabled --service=ssh
|
||
|
services --disabled="kdump" --enabled="chronyd,rsyslog,sshd"
|
||
|
selinux --enforcing
|
||
|
|
||
|
bootloader --timeout=1 --location=mbr --append="console=tty0 console=ttyS0,115200n8 no_timer_check crashkernel=auto net.ifnames=0"
|
||
|
|
||
|
%pre --erroronfail
|
||
|
|
||
|
parted -s -a optimal /dev/sda -- mklabel gpt
|
||
|
parted -s -a optimal /dev/sda -- mkpart biosboot 1MiB 2MiB set 1 bios_grub on
|
||
|
parted -s -a optimal /dev/sda -- mkpart '"EFI System Partition"' fat32 2MiB 202MiB set 2 esp on
|
||
|
parted -s -a optimal /dev/sda -- mkpart boot xfs 202MiB 714MiB
|
||
|
parted -s -a optimal /dev/sda -- mkpart root xfs 714MiB 100%
|
||
|
|
||
|
%end
|
||
|
|
||
|
part biosboot --fstype=biosboot --onpart=sda1
|
||
|
part /boot/efi --fstype=efi --onpart=sda2
|
||
|
part /boot --fstype=xfs --onpart=sda3
|
||
|
part / --fstype=xfs --onpart=sda4
|
||
|
|
||
|
rootpw --plaintext msvsphere
|
||
|
|
||
|
reboot --eject
|
||
|
|
||
|
|
||
|
%packages --inst-langs=en
|
||
|
@core
|
||
|
dracut-config-generic
|
||
|
grub2-pc
|
||
|
usermode
|
||
|
-biosdevname
|
||
|
-dnf-plugin-spacewalk
|
||
|
-dracut-config-rescue
|
||
|
-iprutils
|
||
|
-iwl*-firmware
|
||
|
-langpacks-*
|
||
|
-mdadm
|
||
|
-open-vm-tools
|
||
|
-plymouth
|
||
|
-rhn*
|
||
|
%end
|
||
|
|
||
|
|
||
|
# disable kdump service
|
||
|
%addon com_redhat_kdump --disable
|
||
|
%end
|
||
|
|
||
|
%post --erroronfail
|
||
|
|
||
|
grub2-install --target=i386-pc /dev/sda
|
||
|
|
||
|
# permit root login via SSH with password authetication
|
||
|
echo "PermitRootLogin yes" > /etc/ssh/sshd_config.d/01-permitrootlogin.conf
|
||
|
|
||
|
%end
|