forked from sig_core/kickstarts
add %pre to base images
This commit is contained in:
parent
ce1ca494b2
commit
deeac2a61b
4 changed files with 88 additions and 10 deletions
|
@ -28,15 +28,34 @@ services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud
|
||||||
# System bootloader configuration
|
# System bootloader configuration
|
||||||
bootloader --append="rootdelay=300 console=ttyS0 earlyprintk=ttyS0 no_timer_check crashkernel=auto net.ifnames=0" --location=mbr --timeout=1
|
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
|
# Clear the Master Boot Record
|
||||||
zerombr
|
#zerombr
|
||||||
# Partition clearing information
|
# Partition clearing information
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
#clearpart --all --initlabel --disklabel=gpt
|
||||||
# Disk partitioning information
|
# Disk partitioning information
|
||||||
part biosboot --fstype="biosboot" --size=1
|
|
||||||
part /boot/efi --fstype="efi" --size=100
|
part /boot/efi --fstype="efi" --size=100
|
||||||
part /boot --fstype="xfs" --size=1000 --label=boot
|
part /boot --fstype="xfs" --size=1000 --label=boot
|
||||||
|
part prepboot --fstype=biosboot --asprimary --onpart=vda3
|
||||||
|
part biosboot --fstype="biosboot" --size=1
|
||||||
part / --fstype="xfs" --grow --size=8000 --mkfsoptions="-m bigtime=0,inobtcount=0"
|
part / --fstype="xfs" --grow --size=8000 --mkfsoptions="-m bigtime=0,inobtcount=0"
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# Clear the Master Boot Record
|
||||||
|
dd if=/dev/zero of=/dev/vda bs=512 count=1
|
||||||
|
# Create a new GPT partition table
|
||||||
|
parted /dev/vda mklabel gpt
|
||||||
|
# Create a partition for /boot/efi
|
||||||
|
parted /dev/vda mkpart primary fat32 1MiB 100MiB
|
||||||
|
parted /dev/vda set 1 boot on
|
||||||
|
# Create a partition for /boot
|
||||||
|
parted /dev/vda mkpart primary xfs 100MiB 1100MiB
|
||||||
|
# Create a partition for prep
|
||||||
|
parted /dev/vda mkpart primary 1100MiB 1104MiB
|
||||||
|
# Create a partition for bios_grub
|
||||||
|
parted /dev/vda mkpart primary 1104MiB 1105MiB
|
||||||
|
# Create a partition for LVM
|
||||||
|
parted /dev/vda mkpart primary xfs 1106MiB 10.7GB
|
||||||
|
%end
|
||||||
|
|
||||||
%post --erroronfail
|
%post --erroronfail
|
||||||
passwd -d root
|
passwd -d root
|
||||||
passwd -l root
|
passwd -l root
|
||||||
|
|
|
@ -16,16 +16,35 @@ services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud
|
||||||
timezone UTC --isUtc
|
timezone UTC --isUtc
|
||||||
# Disk
|
# Disk
|
||||||
bootloader --append="console=ttyS0,115200n8 no_timer_check crashkernel=auto net.ifnames=0 nvme_core.io_timeout=4294967295 nvme_core.max_retries=10" --location=mbr --timeout=1
|
bootloader --append="console=ttyS0,115200n8 no_timer_check crashkernel=auto net.ifnames=0 nvme_core.io_timeout=4294967295 nvme_core.max_retries=10" --location=mbr --timeout=1
|
||||||
zerombr
|
#zerombr
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
#clearpart --all --initlabel --disklabel=gpt
|
||||||
#reqpart
|
#reqpart
|
||||||
part biosboot --size=1 --fstype=biosboot --asprimary
|
|
||||||
part /boot/efi --size=100 --fstype=efi --asprimary
|
part /boot/efi --size=100 --fstype=efi --asprimary
|
||||||
part /boot --size=1024 --fstype=xfs --label=boot
|
part /boot --size=1024 --fstype=xfs --label=boot
|
||||||
|
part prepboot --fstype=biosboot --asprimary --onpart=vda3
|
||||||
|
part biosboot --size=1 --fstype=biosboot --asprimary
|
||||||
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0"
|
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0"
|
||||||
|
|
||||||
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/
|
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# Clear the Master Boot Record
|
||||||
|
dd if=/dev/zero of=/dev/vda bs=512 count=1
|
||||||
|
# Create a new GPT partition table
|
||||||
|
parted /dev/vda mklabel gpt
|
||||||
|
# Create a partition for /boot/efi
|
||||||
|
parted /dev/vda mkpart primary fat32 1MiB 100MiB
|
||||||
|
parted /dev/vda set 1 boot on
|
||||||
|
# Create a partition for /boot
|
||||||
|
parted /dev/vda mkpart primary xfs 100MiB 1100MiB
|
||||||
|
# Create a partition for prep
|
||||||
|
parted /dev/vda mkpart primary 1100MiB 1104MiB
|
||||||
|
# Create a partition for bios_grub
|
||||||
|
parted /dev/vda mkpart primary 1104MiB 1105MiB
|
||||||
|
# Create a partition for LVM
|
||||||
|
parted /dev/vda mkpart primary xfs 1106MiB 10.7GB
|
||||||
|
%end
|
||||||
|
|
||||||
%post --erroronfail
|
%post --erroronfail
|
||||||
passwd -d root
|
passwd -d root
|
||||||
passwd -l root
|
passwd -l root
|
||||||
|
|
|
@ -19,14 +19,33 @@ rootpw --iscrypted thereisnopasswordanditslocked
|
||||||
zerombr
|
zerombr
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
clearpart --all --initlabel --disklabel=gpt
|
||||||
#reqpart
|
#reqpart
|
||||||
part biosboot --size=1 --fstype=biosboot --asprimary
|
|
||||||
part /boot/efi --size=100 --fstype=efi --asprimary
|
part /boot/efi --size=100 --fstype=efi --asprimary
|
||||||
part /boot --size=1000 --fstype=xfs --label=boot
|
part /boot --size=1000 --fstype=xfs --label=boot
|
||||||
|
part prepboot --fstype=biosboot --asprimary --onpart=vda3
|
||||||
|
part biosboot --size=1 --fstype=biosboot --asprimary
|
||||||
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0" --grow
|
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0" --grow
|
||||||
shutdown
|
shutdown
|
||||||
|
|
||||||
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/
|
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# Clear the Master Boot Record
|
||||||
|
dd if=/dev/zero of=/dev/vda bs=512 count=1
|
||||||
|
# Create a new GPT partition table
|
||||||
|
parted /dev/vda mklabel gpt
|
||||||
|
# Create a partition for /boot/efi
|
||||||
|
parted /dev/vda mkpart primary fat32 1MiB 100MiB
|
||||||
|
parted /dev/vda set 1 boot on
|
||||||
|
# Create a partition for /boot
|
||||||
|
parted /dev/vda mkpart primary xfs 100MiB 1100MiB
|
||||||
|
# Create a partition for prep
|
||||||
|
parted /dev/vda mkpart primary 1100MiB 1104MiB
|
||||||
|
# Create a partition for bios_grub
|
||||||
|
parted /dev/vda mkpart primary 1104MiB 1105MiB
|
||||||
|
# Create a partition for LVM
|
||||||
|
parted /dev/vda mkpart primary xfs 1106MiB 10.7GB
|
||||||
|
%end
|
||||||
|
|
||||||
%packages
|
%packages
|
||||||
@core
|
@core
|
||||||
chrony
|
chrony
|
||||||
|
|
|
@ -1,6 +1,27 @@
|
||||||
zerombr
|
#zerombr
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
#clearpart --all --initlabel --disklabel=gpt
|
||||||
part biosboot --size=1 --fstype=biosboot --asprimary
|
|
||||||
part /boot/efi --size=100 --fstype=efi --asprimary
|
part /boot/efi --size=100 --fstype=efi --asprimary
|
||||||
part /boot --size=1000 --fstype=xfs --label=boot
|
part /boot --size=1000 --fstype=xfs --label=boot
|
||||||
|
part prepboot --fstype=biosboot --asprimary --onpart=vda3
|
||||||
|
part biosboot --size=1 --fstype=biosboot --asprimary
|
||||||
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0" --grow
|
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0" --grow
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# Clear the Master Boot Record
|
||||||
|
dd if=/dev/zero of=/dev/vda bs=512 count=1
|
||||||
|
# Create a new GPT partition table
|
||||||
|
parted /dev/vda mklabel gpt
|
||||||
|
# Create a partition for /boot/efi
|
||||||
|
parted /dev/vda mkpart primary fat32 1MiB 100MiB
|
||||||
|
parted /dev/vda set 1 boot on
|
||||||
|
# Create a partition for /boot
|
||||||
|
parted /dev/vda mkpart primary xfs 100MiB 1100MiB
|
||||||
|
# Create a partition for prep
|
||||||
|
parted /dev/vda mkpart primary 1100MiB 1104MiB
|
||||||
|
# Create a partition for bios_grub
|
||||||
|
parted /dev/vda mkpart primary 1104MiB 1105MiB
|
||||||
|
# Create a partition for LVM
|
||||||
|
parted /dev/vda mkpart primary xfs 1106MiB 10.7GB
|
||||||
|
%end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue