flatten new templates for azure, oracle, vagrant

This commit is contained in:
Louis Abel 2022-11-22 11:25:12 -07:00
parent d87d62e00f
commit f71a70c0aa
Signed by: label
GPG Key ID: B37E62D143879B36
6 changed files with 382 additions and 341 deletions

View File

@ -1,55 +1,60 @@
text # Keyboard layouts
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/ keyboard 'us'
auth --enableshadow --passalgo=sha512
shutdown
firewall --enabled --service=ssh
firstboot --disable
ignoredisk --only-use=vda
keyboard us
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=link --activate --onboot=on
network --hostname=localhost.localdomain
# Root password # Root password
rootpw --iscrypted thereisnopasswordanditslocked rootpw --iscrypted thereisnopasswordanditslocked
selinux --enforcing # System language
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd" lang en_US.UTF-8
# Shutdown after installation
shutdown
# System timezone
timezone UTC --isUtc timezone UTC --isUtc
# Disk # Use text mode install
bootloader --append="rootdelay=300 console=ttyS0 earlyprintk=ttyS0 no_timer_check crashkernel=auto net.ifnames=0" --location=mbr --timeout=1 --boot-drive=vda text
zerombr # Network information
clearpart --all --initlabel network --bootproto=dhcp --device=link --activate
part /boot --fstype xfs --size 1024 --asprimary --ondisk vda network --bootproto=dhcp --hostname=localhost.localdomain
part /boot/efi --fstype vfat --size 512 --asprimary --ondisk vda # Use network installation
reqpart url --url="https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/"
part / --fstype="xfs" --ondisk=vda --maxsize=3000 --grow # System authorization information
auth --enableshadow --passalgo=sha512
# Firewall configuration
firewall --enabled --service=ssh
firstboot --disable
# SELinux configuration
selinux --enforcing
# System services
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
# System bootloader configuration
bootloader --append="rootdelay=300 console=ttyS0 earlyprintk=ttyS0 no_timer_check crashkernel=auto net.ifnames=0" --location=mbr --timeout=1
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --disklabel=gpt
# Disk partitioning information
part biosboot --asprimary --fstype="biosboot" --size=1
part /boot/efi --asprimary --fstype="efi" --size=100
part /boot --asprimary --fstype="xfs" --size=1000 --label=boot
part / --fstype="xfs" --grow --size=8000 --mkfsoptions="-m bigtime=0,inobtcount=0"
%post --erroronfail %post --erroronfail
passwd -d root passwd -d root
passwd -l root passwd -l root
# Attempting to force legacy BIOS boot if we boot from UEFI
# This was backported from our 9 kickstarts to address some issues.
if [ "$(arch)" = "x86_64" ]; then
dnf install grub2-pc-modules grub2-pc -y
grub2-install --target=i386-pc /dev/vda
fi
# Ensure that the pmbr_boot flag is off
parted /dev/vda disk_set pmbr_boot off
### ###
# Common Cloud Tweaks # Common Cloud Tweaks
### ###
# pvgrub support
echo -n "Creating grub.conf for pvgrub"
rootuuid=$( awk '$2=="/" { print $1 };' /etc/fstab )
mkdir /boot/grub
echo -e 'default=0\ntimeout=0\n\n' > /boot/grub/grub.conf
for kv in $( ls -1v /boot/vmlinuz* |grep -v rescue |sed s/.*vmlinuz-// ); do
echo "title Rocky Linux 8 ($kv)" >> /boot/grub/grub.conf
echo -e "\troot (hd0)" >> /boot/grub/grub.conf
echo -e "\tkernel /boot/vmlinuz-$kv ro root=$rootuuid console=hvc0 LANG=en_US.UTF-8" >> /boot/grub/grub.conf
echo -e "\tinitrd /boot/initramfs-$kv.img" >> /boot/grub/grub.conf
echo
done
ln -sf grub.conf /boot/grub/menu.lst
ln -sf /boot/grub/grub.conf /etc/grub.conf
# setup systemd to boot to the right runlevel # setup systemd to boot to the right runlevel
rm -f /etc/systemd/system/default.target rm -f /etc/systemd/system/default.target
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
@ -244,27 +249,38 @@ true
%packages %packages
@core @core
NetworkManager
WALinuxAgent
chrony chrony
dnf
yum
cloud-init cloud-init
cloud-utils-growpart cloud-utils-growpart
NetworkManager cockpit-system
cockpit-ws
dhcp-client
dnf
dnf-utils
dracut-config-generic dracut-config-generic
dracut-norescue dracut-norescue
firewalld firewalld
gdisk gdisk
grub2 grub2
hyperv-daemons
kernel kernel
nfs-utils nfs-utils
python3-jsonschema
qemu-guest-agent
rng-tools
rocky-release
rsync rsync
tar tar
dnf-utils yum
yum-utils yum-utils
-aic94xx-firmware -aic94xx-firmware
-alsa-firmware -alsa-firmware
-alsa-lib -alsa-lib
-alsa-tools-firmware -alsa-tools-firmware
-biosdevname
-iprutils
-ivtv-firmware -ivtv-firmware
-iwl100-firmware -iwl100-firmware
-iwl1000-firmware -iwl1000-firmware
@ -282,25 +298,11 @@ yum-utils
-iwl6000g2b-firmware -iwl6000g2b-firmware
-iwl6050-firmware -iwl6050-firmware
-iwl7260-firmware -iwl7260-firmware
-langpacks-*
-langpacks-en
-libertas-sd8686-firmware -libertas-sd8686-firmware
-libertas-sd8787-firmware -libertas-sd8787-firmware
-libertas-usb8388-firmware -libertas-usb8388-firmware
-biosdevname
-iprutils
-plymouth -plymouth
python3-jsonschema
qemu-guest-agent
dhcp-client
cockpit-ws
cockpit-system
-langpacks-*
-langpacks-en
rocky-release
rng-tools
WALinuxAgent
hyperv-daemons
%end %end

View File

@ -1,57 +1,63 @@
text #version=DEVEL
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/ # Keyboard layouts
keyboard 'us'
auth --enableshadow --passalgo=sha512
shutdown
firewall --enabled --service=ssh
firstboot --disable
ignoredisk --only-use=vda
keyboard us
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=link --activate --onboot=on
network --hostname=localhost.localdomain
# Root password # Root password
rootpw --iscrypted thereisnopasswordanditslocked rootpw --iscrypted thereisnopasswordanditslocked
selinux --enforcing # System language
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd" lang en_US.UTF-8
# Shutdown after installation
shutdown
# System timezone
timezone UTC --isUtc timezone UTC --isUtc
# Disk # Use text mode install
bootloader --append="rootdelay=300 console=ttyS0 earlyprintk=ttyS0 no_timer_check crashkernel=auto net.ifnames=0" --location=mbr --timeout=1 --boot-drive=vda text
zerombr # Network information
clearpart --all --initlabel network --bootproto=dhcp --device=link --activate
part /boot --fstype xfs --size 1024 --asprimary --ondisk vda network --bootproto=dhcp --hostname=localhost.localdomain
part /boot/efi --fstype vfat --size 512 --asprimary --ondisk vda # Use network installation
reqpart url --url="https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/"
part pv.01 --size=1 --ondisk=vda --asprimary --grow # System authorization information
volgroup rocky pv.01 auth --enableshadow --passalgo=sha512
logvol / --vgname=rocky --size=8000 --name=root --grow # Firewall configuration
firewall --enabled --service=ssh
firstboot --disable
# SELinux configuration
selinux --enforcing
# System services
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
# System bootloader configuration
bootloader --append="rootdelay=300 console=ttyS0 earlyprintk=ttyS0 no_timer_check crashkernel=auto net.ifnames=0" --location=mbr --timeout=1
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --disklabel=gpt
# Disk partitioning information
part biosboot --asprimary --fstype="biosboot" --size=1
part /boot/efi --asprimary --fstype="efi" --size=100
part /boot --asprimary --fstype="xfs" --size=1000 --label=boot
part pv.01 --asprimary --grow --ondisk=vda --size=1
volgroup rocky pv.01
logvol / --grow --size=8000 --name=root --vgname=rocky
%post --erroronfail %post --erroronfail
passwd -d root passwd -d root
passwd -l root passwd -l root
# Attempting to force legacy BIOS boot if we boot from UEFI
# This was backported from our 9 kickstarts to address some issues.
if [ "$(arch)" = "x86_64" ]; then
dnf install grub2-pc-modules grub2-pc -y
grub2-install --target=i386-pc /dev/vda
fi
# Ensure that the pmbr_boot flag is off
parted /dev/vda disk_set pmbr_boot off
### ###
# Common Cloud Tweaks # Common Cloud Tweaks
### ###
# pvgrub support
echo -n "Creating grub.conf for pvgrub"
rootuuid=$( awk '$2=="/" { print $1 };' /etc/fstab )
mkdir /boot/grub
echo -e 'default=0\ntimeout=0\n\n' > /boot/grub/grub.conf
for kv in $( ls -1v /boot/vmlinuz* |grep -v rescue |sed s/.*vmlinuz-// ); do
echo "title Rocky Linux 8 ($kv)" >> /boot/grub/grub.conf
echo -e "\troot (hd0)" >> /boot/grub/grub.conf
echo -e "\tkernel /boot/vmlinuz-$kv ro root=$rootuuid console=hvc0 LANG=en_US.UTF-8" >> /boot/grub/grub.conf
echo -e "\tinitrd /boot/initramfs-$kv.img" >> /boot/grub/grub.conf
echo
done
ln -sf grub.conf /boot/grub/menu.lst
ln -sf /boot/grub/grub.conf /etc/grub.conf
# setup systemd to boot to the right runlevel # setup systemd to boot to the right runlevel
rm -f /etc/systemd/system/default.target rm -f /etc/systemd/system/default.target
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
@ -246,27 +252,38 @@ true
%packages %packages
@core @core
NetworkManager
WALinuxAgent
chrony chrony
dnf
yum
cloud-init cloud-init
cloud-utils-growpart cloud-utils-growpart
NetworkManager cockpit-system
cockpit-ws
dhcp-client
dnf
dnf-utils
dracut-config-generic dracut-config-generic
dracut-norescue dracut-norescue
firewalld firewalld
gdisk gdisk
grub2 grub2
hyperv-daemons
kernel kernel
nfs-utils nfs-utils
python3-jsonschema
qemu-guest-agent
rng-tools
rocky-release
rsync rsync
tar tar
dnf-utils yum
yum-utils yum-utils
-aic94xx-firmware -aic94xx-firmware
-alsa-firmware -alsa-firmware
-alsa-lib -alsa-lib
-alsa-tools-firmware -alsa-tools-firmware
-biosdevname
-iprutils
-ivtv-firmware -ivtv-firmware
-iwl100-firmware -iwl100-firmware
-iwl1000-firmware -iwl1000-firmware
@ -284,25 +301,11 @@ yum-utils
-iwl6000g2b-firmware -iwl6000g2b-firmware
-iwl6050-firmware -iwl6050-firmware
-iwl7260-firmware -iwl7260-firmware
-langpacks-*
-langpacks-en
-libertas-sd8686-firmware -libertas-sd8686-firmware
-libertas-sd8787-firmware -libertas-sd8787-firmware
-libertas-usb8388-firmware -libertas-usb8388-firmware
-biosdevname
-iprutils
-plymouth -plymouth
python3-jsonschema
qemu-guest-agent
dhcp-client
cockpit-ws
cockpit-system
-langpacks-*
-langpacks-en
rocky-release
rng-tools
WALinuxAgent
hyperv-daemons
%end %end

View File

@ -1,36 +1,56 @@
text #version=DEVEL
repo --name="oraclelinux-addons" --baseurl=http://yum.oracle.com/repo/OracleLinux/OL8/addons/$basearch/ --install --includepkgs="oci-utils" # Keyboard layouts
keyboard 'us'
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/ # Root password
rootpw --iscrypted thereisnopasswordanditslocked
auth --enableshadow --passalgo=sha512
reboot
firewall --enabled --service=ssh
firstboot --disable
ignoredisk --only-use=vda
keyboard us
# System language # System language
lang en_US.UTF-8 lang en_US.UTF-8
# Network information # Shutdown after installation
network --bootproto=dhcp --device=link --activate --onboot=on shutdown
network --hostname=localhost.localdomain # System timezone
# Root password
rootpw --plaintext rocky
selinux --enforcing
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
timezone UTC --isUtc timezone UTC --isUtc
# Disk # Use text mode install
bootloader --append="console=ttyS0,115200n8 console=tty0 no_timer_check crashkernel=auto net.ifnames=0 LANG=en_US.UTF-8 transparent_hugepage=never rd.luks=0 rd.md=0 rd.dm=0 rd.lvm.vg=rocky rd.lvm.lv=rocky/root rd.net.timeout.dhcp=10" --location=mbr --timeout=1 --boot-drive=vda text
# Network information
network --bootproto=dhcp --device=link --activate
network --bootproto=dhcp --hostname=localhost.localdomain
repo --name="oraclelinux-addons" --baseurl=http://yum.oracle.com/repo/OracleLinux/OL8/addons/$basearch/ --includepkgs="oci-utils" --install
# Use network installation
url --url="https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/"
# System authorization information
auth --enableshadow --passalgo=sha512
# Firewall configuration
firewall --enabled --service=ssh
firstboot --disable
# SELinux configuration
selinux --enforcing
clearpart --all --initlabel --drives vda # System services
part /boot --fstype xfs --size 1024 --asprimary --ondisk vda services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
part /boot/efi --fstype vfat --size 512 --asprimary --ondisk vda # System bootloader configuration
bootloader --append="console=ttyS0,115200n8 console=tty0 no_timer_check crashkernel=auto net.ifnames=0 LANG=en_US.UTF-8 transparent_hugepage=never rd.luks=0 rd.md=0 rd.dm=0 rd.lvm.vg=rocky rd.lvm.lv=rocky/root rd.net.timeout.dhcp=10" --location=mbr --timeout=1
part pv.01 --ondisk=vda --size=1 --grow --asprimary # Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --disklabel=gpt
# Disk partitioning information
part biosboot --asprimary --fstype="biosboot" --size=1
part /boot/efi --asprimary --fstype="efi" --size=100
part /boot --asprimary --fstype="xfs" --size=1000 --label=boot
part pv.01 --asprimary --grow --ondisk=vda --size=1
volgroup rocky pv.01 volgroup rocky pv.01
logvol / --vgname=rocky --size=3000 --name=root --grow logvol / --grow --size=8000 --name=root --vgname=rocky
%post --erroronfail %post --erroronfail
# Attempting to force legacy BIOS boot if we boot from UEFI
# This was backported from our 9 kickstarts to address some issues.
if [ "$(arch)" = "x86_64" ]; then
dnf install grub2-pc-modules grub2-pc -y
grub2-install --target=i386-pc /dev/vda
fi
# Ensure that the pmbr_boot flag is off
parted /dev/vda disk_set pmbr_boot off
# setup systemd to boot to the right runlevel # setup systemd to boot to the right runlevel
rm -f /etc/systemd/system/default.target rm -f /etc/systemd/system/default.target
@ -241,6 +261,7 @@ true
%packages %packages
@core @core
NetworkManager
chrony chrony
cloud-init cloud-init
cloud-utils-growpart cloud-utils-growpart
@ -255,7 +276,6 @@ gdisk
grub2 grub2
iscsi-initiator-utils iscsi-initiator-utils
kernel kernel
NetworkManager
nfs-utils nfs-utils
oci-utils oci-utils
python3-jsonschema python3-jsonschema
@ -266,7 +286,6 @@ rsync
tar tar
yum yum
yum-utils yum-utils
-aic94xx-firmware -aic94xx-firmware
-alsa-firmware -alsa-firmware
-alsa-lib -alsa-lib
@ -296,4 +315,5 @@ yum-utils
-libertas-sd8787-firmware -libertas-sd8787-firmware
-libertas-usb8388-firmware -libertas-usb8388-firmware
-plymouth -plymouth
%end %end

View File

@ -1,67 +1,38 @@
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/ #version=DEVEL
repo --name=plus --baseurl=http://dl.rockylinux.org/pub/rocky/8/plus/$basearch/os # Keyboard layouts
keyboard --vckeymap=us
text # Root password
keyboard --vckeymap us
lang en_US
skipx
network --bootproto=dhcp --device=link --activate --onboot=on
rootpw --plaintext vagrant rootpw --plaintext vagrant
firewall --disabled # System language
timezone --utc UTC lang en_US
services --enabled=vmtoolsd # Shutdown after installation
# The biosdevname and ifnames options ensure we get "eth0" as our interface
# even in environments like virtualbox that emulate a real NW card
bootloader --timeout=1 --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop"
zerombr
clearpart --all --initlabel
reqpart
part / --fstype=xfs --asprimary --size=1024 --grow
user --name=vagrant --plaintext --password=vagrant
shutdown shutdown
user --name=vagrant --password=vagrant
# System timezone
timezone UTC --isUtc
# Use text mode install
text
# Network information
network --bootproto=dhcp --device=link --activate
repo --name="plus" --baseurl=http://dl.rockylinux.org/pub/rocky/8/plus/$basearch/os
# Use network installation
url --url="https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/"
# Firewall configuration
firewall --disabled
# Do not configure the X Window System
skipx
%packages --instLangs=en # System services
bash-completion services --enabled="vmtoolsd"
man-pages # System bootloader configuration
bzip2 bootloader --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop" --location=mbr --timeout=1
rsync reqpart
nfs-utils # Clear the Master Boot Record
cifs-utils zerombr
chrony # Partition clearing information
yum-utils clearpart --all --initlabel
hyperv-daemons # Disk partitioning information
open-vm-tools part / --asprimary --fstype="xfs" --grow --size=1024
# Vagrant boxes aren't normally visible, no need for Plymouth
-plymouth
# Microcode updates cannot work in a VM
-microcode_ctl
# Firmware packages are not needed in a VM
-iwl100-firmware
-iwl1000-firmware
-iwl105-firmware
-iwl135-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6050-firmware
-iwl7260-firmware
# Don't build rescue initramfs
-dracut-config-rescue
%end
# kdump needs to reserve 160MB + 2bits/4kB RAM, and automatic allocation only
# works on systems with at least 2GB RAM (which excludes most Vagrant boxes)
# CBS doesn't support %addon yet https://bugs.centos.org/view.php?id=12169
%addon com_redhat_kdump --disable
%end
%post %post
# configure swap to a file # configure swap to a file
@ -154,3 +125,37 @@ rm -rf /etc/ssh/ssh_host_*
hostnamectl set-hostname localhost.localdomain hostnamectl set-hostname localhost.localdomain
rm -rf /etc/udev/rules.d/70-* rm -rf /etc/udev/rules.d/70-*
%end %end
%addon com_redhat_kdump --disable
%end
%packages --instLangs=en
bash-completion
bzip2
chrony
cifs-utils
hyperv-daemons
man-pages
nfs-utils
open-vm-tools
rsync
yum-utils
-dracut-config-rescue
-iwl100-firmware
-iwl1000-firmware
-iwl105-firmware
-iwl135-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6050-firmware
-iwl7260-firmware
-microcode_ctl
-plymouth
%end

View File

@ -1,65 +1,38 @@
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/ #version=DEVEL
repo --name=plus --baseurl=http://dl.rockylinux.org/pub/rocky/8/plus/$basearch/os # Keyboard layouts
text keyboard --vckeymap=us
keyboard --vckeymap us # Root password
lang en_US
skipx
network --bootproto=dhcp --device=link --activate --onboot=on
rootpw --plaintext vagrant rootpw --plaintext vagrant
firewall --disabled # System language
timezone --utc UTC lang en_US
services --enabled=vmtoolsd # Shutdown after installation
# The biosdevname and ifnames options ensure we get "eth0" as our interface
# even in environments like virtualbox that emulate a real NW card
bootloader --timeout=1 --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop"
zerombr
clearpart --all --initlabel
reqpart
part / --fstype=xfs --asprimary --size=1024 --grow
user --name=vagrant --plaintext --password=vagrant
shutdown shutdown
user --name=vagrant --password=vagrant
# System timezone
timezone UTC --isUtc
# Use text mode install
text
# Network information
network --bootproto=dhcp --device=link --activate
repo --name="plus" --baseurl=http://dl.rockylinux.org/pub/rocky/8/plus/$basearch/os
# Use network installation
url --url="https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/"
# Firewall configuration
firewall --disabled
# Do not configure the X Window System
skipx
%packages --instLangs=en # System services
bash-completion services --enabled="vmtoolsd"
man-pages # System bootloader configuration
bzip2 bootloader --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop" --location=mbr --timeout=1
rsync reqpart
nfs-utils # Clear the Master Boot Record
cifs-utils zerombr
chrony # Partition clearing information
yum-utils clearpart --all --initlabel
open-vm-tools # Disk partitioning information
# Vagrant boxes aren't normally visible, no need for Plymouth part / --asprimary --fstype="xfs" --grow --size=1024
-plymouth
# Microcode updates cannot work in a VM
-microcode_ctl
# Firmware packages are not needed in a VM
-iwl100-firmware
-iwl1000-firmware
-iwl105-firmware
-iwl135-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6050-firmware
-iwl7260-firmware
# Don't build rescue initramfs
-dracut-config-rescue
%end
# kdump needs to reserve 160MB + 2bits/4kB RAM, and automatic allocation only
# works on systems with at least 2GB RAM (which excludes most Vagrant boxes)
# CBS doesn't support %addon yet https://bugs.centos.org/view.php?id=12169
%addon com_redhat_kdump --disable
%end
%post %post
# configure swap to a file # configure swap to a file
@ -155,3 +128,36 @@ rm -rf /etc/ssh/ssh_host_*
hostnamectl set-hostname localhost.localdomain hostnamectl set-hostname localhost.localdomain
rm -rf /etc/udev/rules.d/70-* rm -rf /etc/udev/rules.d/70-*
%end %end
%addon com_redhat_kdump --disable
%end
%packages --instLangs=en
bash-completion
bzip2
chrony
cifs-utils
man-pages
nfs-utils
open-vm-tools
rsync
yum-utils
-dracut-config-rescue
-iwl100-firmware
-iwl1000-firmware
-iwl105-firmware
-iwl135-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6050-firmware
-iwl7260-firmware
-microcode_ctl
-plymouth
%end

View File

@ -1,67 +1,38 @@
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/ #version=DEVEL
repo --name=plus --baseurl=http://dl.rockylinux.org/pub/rocky/8/plus/$basearch/os # Keyboard layouts
keyboard --vckeymap=us
text # Root password
keyboard --vckeymap us
lang en_US
skipx
network --bootproto=dhcp --device=link --activate --onboot=on
rootpw --plaintext vagrant rootpw --plaintext vagrant
# System language
lang en_US
# Shutdown after installation
shutdown
user --name=vagrant --password=vagrant
# System timezone
timezone UTC --isUtc
# Use text mode install
text
# Network information
network --bootproto=dhcp --device=link --activate
repo --name="plus" --baseurl=http://dl.rockylinux.org/pub/rocky/8/plus/$basearch/os
# Use network installation
url --url="https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/"
# Firewall configuration
firewall --disabled firewall --disabled
timezone --utc UTC # Do not configure the X Window System
services --enabled=vmtoolsd skipx
# The biosdevname and ifnames options ensure we get "eth0" as our interface
# even in environments like virtualbox that emulate a real NW card # System services
bootloader --timeout=1 --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop" services --enabled="vmtoolsd"
zerombr # System bootloader configuration
clearpart --all --initlabel bootloader --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop" --location=mbr --timeout=1
reqpart reqpart
part / --fstype=xfs --asprimary --size=1024 --grow # Clear the Master Boot Record
zerombr
user --name=vagrant --plaintext --password=vagrant # Partition clearing information
clearpart --all --initlabel
reboot # Disk partitioning information
part / --asprimary --fstype="xfs" --grow --size=1024
%packages --instLangs=en
bash-completion
man-pages
bzip2
rsync
nfs-utils
cifs-utils
chrony
yum-utils
hyperv-daemons
open-vm-tools
# Vagrant boxes aren't normally visible, no need for Plymouth
-plymouth
# Microcode updates cannot work in a VM
-microcode_ctl
# Firmware packages are not needed in a VM
-iwl100-firmware
-iwl1000-firmware
-iwl105-firmware
-iwl135-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6050-firmware
-iwl7260-firmware
# Don't build rescue initramfs
-dracut-config-rescue
%end
# kdump needs to reserve 160MB + 2bits/4kB RAM, and automatic allocation only
# works on systems with at least 2GB RAM (which excludes most Vagrant boxes)
# CBS doesn't support %addon yet https://bugs.centos.org/view.php?id=12169
%addon com_redhat_kdump --disable
%end
%post %post
# configure swap to a file # configure swap to a file
@ -168,3 +139,37 @@ rm -rf /etc/ssh/ssh_host_*
hostnamectl set-hostname localhost.localdomain hostnamectl set-hostname localhost.localdomain
rm -rf /etc/udev/rules.d/70-* rm -rf /etc/udev/rules.d/70-*
%end %end
%addon com_redhat_kdump --disable
%end
%packages --instLangs=en
bash-completion
bzip2
chrony
cifs-utils
hyperv-daemons
man-pages
nfs-utils
open-vm-tools
rsync
yum-utils
-dracut-config-rescue
-iwl100-firmware
-iwl1000-firmware
-iwl105-firmware
-iwl135-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6050-firmware
-iwl7260-firmware
-microcode_ctl
-plymouth
%end