Update kickstart

pull/4/head
Arkady L. Shane 3 months ago
parent e362d41997
commit 3eaa415999
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -1,4 +1,4 @@
# AlmaLinux 8 kickstart file for Generic Cloud (OpenStack) image # MSVSphere OS 8 Packer template for building Generic Cloud (OpenStack compatible) images.
url --url https://rsync.inferitos.ru/msvsphere/8/BaseOS/x86_64/kickstart/ url --url https://rsync.inferitos.ru/msvsphere/8/BaseOS/x86_64/kickstart/
repo --name=BaseOS --baseurl=https://rsync.inferitos.ru/msvsphere/8/BaseOS/x86_64/os/ repo --name=BaseOS --baseurl=https://rsync.inferitos.ru/msvsphere/8/BaseOS/x86_64/os/
@ -14,16 +14,26 @@ keyboard us
timezone UTC --isUtc timezone UTC --isUtc
network --bootproto=dhcp network --bootproto=dhcp
firewall --enabled --service=ssh firewall --disabled
services --disabled="kdump" --enabled="chronyd,rsyslog,sshd" services --disabled="kdump" --enabled="chronyd,rsyslog,sshd"
selinux --enforcing selinux --enforcing
# TODO: remove "console=tty0" from here bootloader --timeout=1 --location=mbr --append="console=tty0 console=ttyS0,115200n8 no_timer_check net.ifnames=0"
bootloader --append="console=ttyS0,115200n8 console=tty0 crashkernel=auto net.ifnames=0 no_timer_check" --location=mbr --timeout=1
zerombr %pre --erroronfail
clearpart --all --initlabel
reqpart parted -s -a optimal /dev/sda -- mklabel gpt
part / --fstype="xfs" --size=8000 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 1226MiB
parted -s -a optimal /dev/sda -- mkpart root xfs 1226MiB 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 rootpw --plaintext msvsphere
@ -31,6 +41,7 @@ reboot --eject
%packages %packages
@core @core
grub2-pc
-biosdevname -biosdevname
-open-vm-tools -open-vm-tools
-plymouth -plymouth
@ -43,11 +54,20 @@ sphere-release-server
sphere-release sphere-release
%end %end
# disable kdump service # disable kdump service
%addon com_redhat_kdump --disable %addon com_redhat_kdump --disable
%end %end
%post --erroronfail
EX_NOINPUT=66
root_disk=$(grub2-probe --target=disk /boot/grub2)
if [[ "$root_disk" =~ ^"/dev/" ]]; then
grub2-install --target=i386-pc "$root_disk"
else
exit "$EX_NOINPUT"
fi
%post
%end %end

Loading…
Cancel
Save