forked from sig_core/kickstarts
Compare commits
10 Commits
67c9361688
...
deeac2a61b
Author | SHA1 | Date | |
---|---|---|---|
deeac2a61b | |||
ce1ca494b2 | |||
4e1a1e9101 | |||
6e5078c7be | |||
5f119e8041 | |||
fa6307c427 | |||
1be3dbad2c | |||
9d3f4cd6c2 | |||
403173ecc3 | |||
00717352d3 |
@ -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
|
||||||
@ -199,6 +218,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -28,17 +28,33 @@ selinux --enforcing
|
|||||||
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
|
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
|
||||||
# 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
|
|
||||||
zerombr
|
part /boot/efi --fstype=efi --asprimary --onpart=vda1
|
||||||
# Partition clearing information
|
part /boot --fstype=xfs --label=boot --onpart=vda2
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
part prepboot --fstype=biosboot --asprimary --onpart=vda3
|
||||||
# Disk partitioning information
|
part biosboot --fstype=biosboot --asprimary --onpart=vda4
|
||||||
part biosboot --fstype="biosboot" --size=1
|
part pv.01 --grow --onpart=vda5
|
||||||
part /boot/efi --fstype="efi" --size=100
|
|
||||||
part /boot --fstype="xfs" --size=1000 --label=boot
|
|
||||||
part pv.01 --grow --ondisk=vda --size=1
|
|
||||||
volgroup rocky pv.01
|
volgroup rocky pv.01
|
||||||
logvol / --grow --size=8000 --name=root --vgname=rocky
|
logvol / --vgname=rocky --size=8000 --name=root --grow --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 ext2 1106MiB 10.7GB
|
||||||
|
parted /dev/vda set 5 lvm on
|
||||||
|
%end
|
||||||
|
|
||||||
%post --erroronfail
|
%post --erroronfail
|
||||||
passwd -d root
|
passwd -d root
|
||||||
@ -202,6 +218,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -31,7 +31,6 @@ dbus-broker-launch --scope=none
|
|||||||
# Package setup
|
# Package setup
|
||||||
%packages --ignoremissing --excludedocs --instLangs=en --nocore --excludeWeakdeps
|
%packages --ignoremissing --excludedocs --instLangs=en --nocore --excludeWeakdeps
|
||||||
bash
|
bash
|
||||||
dbus-daemon
|
|
||||||
coreutils-single
|
coreutils-single
|
||||||
glibc-minimal-langpack
|
glibc-minimal-langpack
|
||||||
microdnf
|
microdnf
|
||||||
|
104
Rocky-8-Container-WSL.ks
Normal file
104
Rocky-8-Container-WSL.ks
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
# This is a minimal Rocky kickstart designed for docker.
|
||||||
|
# It will not produce a bootable system
|
||||||
|
# To use this kickstart, run make
|
||||||
|
|
||||||
|
# Basic setup information
|
||||||
|
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/
|
||||||
|
|
||||||
|
text
|
||||||
|
bootloader --disable
|
||||||
|
firewall --disabled
|
||||||
|
network --bootproto=dhcp --device=link --activate --onboot=on
|
||||||
|
rootpw --lock --iscrypted locked
|
||||||
|
selinux --disabled
|
||||||
|
shutdown
|
||||||
|
|
||||||
|
keyboard us
|
||||||
|
lang en_US.UTF-8
|
||||||
|
timezone --isUtc --nontp UTC
|
||||||
|
|
||||||
|
# Disk setup
|
||||||
|
zerombr
|
||||||
|
clearpart --all --initlabel
|
||||||
|
autopart --noboot --nohome --noswap --nolvm --fstype=ext4
|
||||||
|
|
||||||
|
%pre
|
||||||
|
dbus-broker-launch --scope=none
|
||||||
|
%end
|
||||||
|
%addon com_redhat_kdump --disable
|
||||||
|
%end
|
||||||
|
|
||||||
|
# Package setup
|
||||||
|
%packages --ignoremissing --excludedocs --instLangs=en --nocore --excludeWeakdeps
|
||||||
|
bash
|
||||||
|
binutils
|
||||||
|
coreutils-single
|
||||||
|
glibc-minimal-langpack
|
||||||
|
hostname
|
||||||
|
iputils # this pulls in systemd, lets ask for it by name, too
|
||||||
|
less
|
||||||
|
passwd
|
||||||
|
rocky-release
|
||||||
|
rootfiles
|
||||||
|
tar
|
||||||
|
vim-minimal
|
||||||
|
yum
|
||||||
|
|
||||||
|
-brotli
|
||||||
|
-dosfstools
|
||||||
|
-kexec-tools
|
||||||
|
-e2fsprogs
|
||||||
|
-firewalld
|
||||||
|
-fuse-libs
|
||||||
|
-gettext*
|
||||||
|
-gnupg2-smime
|
||||||
|
-grub\*
|
||||||
|
-iptables
|
||||||
|
-kernel
|
||||||
|
-libss
|
||||||
|
-os-prober*
|
||||||
|
-pinentry
|
||||||
|
-qemu-guest-agent
|
||||||
|
-shared-mime-info
|
||||||
|
-trousers
|
||||||
|
-xfsprogs
|
||||||
|
-xkeyboard-config
|
||||||
|
%end
|
||||||
|
|
||||||
|
%post --erroronfail --log=/root/anaconda-post.log
|
||||||
|
# container customizations inside the chroot
|
||||||
|
|
||||||
|
# Stay compatible
|
||||||
|
echo 'container' > /etc/dnf/vars/infra
|
||||||
|
|
||||||
|
#Generate installtime file record
|
||||||
|
/bin/date +%Y%m%d_%H%M > /etc/BUILDTIME
|
||||||
|
|
||||||
|
# Limit languages to help reduce size.
|
||||||
|
LANG="en_US"
|
||||||
|
echo "%_install_langs $LANG" > /etc/rpm/macros.image-language-conf
|
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1727489
|
||||||
|
echo 'LANG="C.UTF-8"' > /etc/locale.conf
|
||||||
|
|
||||||
|
# systemd fixes
|
||||||
|
:> /etc/machine-id
|
||||||
|
umount /run
|
||||||
|
systemd-tmpfiles --create --boot
|
||||||
|
|
||||||
|
# mask mounts and login bits
|
||||||
|
systemctl mask \
|
||||||
|
console-getty.service \
|
||||||
|
dev-hugepages.mount \
|
||||||
|
getty.target \
|
||||||
|
sys-fs-fuse-connections.mount \
|
||||||
|
systemd-logind.service \
|
||||||
|
systemd-remount-fs.service
|
||||||
|
|
||||||
|
# Cleanup the image
|
||||||
|
rm -f /etc/udev/hwdb.bin
|
||||||
|
rm -rf /usr/lib/udev/hwdb.d/ \
|
||||||
|
/boot /var/lib/dnf/history.* \
|
||||||
|
/tmp/* /tmp/.* || true
|
||||||
|
|
||||||
|
%end
|
@ -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
|
||||||
@ -116,6 +135,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -16,18 +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
|
|
||||||
clearpart --all --initlabel
|
|
||||||
#reqpart
|
|
||||||
part biosboot --size=1 --fstype=biosboot --asprimary
|
|
||||||
part /boot/efi --size=100 --fstype=efi --asprimary
|
|
||||||
part /boot --size=1024 --fstype=xfs --label=boot
|
|
||||||
part pv.01 --size=1 --ondisk=vda --grow
|
|
||||||
volgroup rocky pv.01
|
|
||||||
logvol / --vgname=rocky --size=8000 --name=root --grow --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/
|
||||||
|
|
||||||
|
part /boot/efi --fstype=efi --asprimary --onpart=vda1
|
||||||
|
part /boot --fstype=xfs --label=boot --onpart=vda2
|
||||||
|
part prepboot --fstype=biosboot --asprimary --onpart=vda3
|
||||||
|
part biosboot --fstype=biosboot --asprimary --onpart=vda4
|
||||||
|
part pv.01 --grow --onpart=vda5
|
||||||
|
volgroup rocky pv.01
|
||||||
|
logvol / --vgname=rocky --size=8000 --name=root --grow --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 ext2 1106MiB 10.7GB
|
||||||
|
parted /dev/vda set 5 lvm on
|
||||||
|
%end
|
||||||
|
|
||||||
%post --erroronfail
|
%post --erroronfail
|
||||||
passwd -d root
|
passwd -d root
|
||||||
passwd -l root
|
passwd -l root
|
||||||
@ -118,6 +135,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -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
|
||||||
@ -180,6 +199,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -14,20 +14,36 @@ network --hostname=localhost.localdomain
|
|||||||
# Root password
|
# Root password
|
||||||
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
|
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
|
||||||
rootpw --iscrypted thereisnopasswordanditslocked
|
rootpw --iscrypted thereisnopasswordanditslocked
|
||||||
|
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/
|
||||||
# Partition stuff
|
|
||||||
zerombr
|
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
|
||||||
#reqpart
|
|
||||||
part biosboot --size=1 --fstype=biosboot --asprimary
|
|
||||||
part /boot/efi --size=100 --fstype=efi --asprimary
|
|
||||||
part /boot --size=1000 --fstype=xfs --label=boot
|
|
||||||
part pv.01 --size=1 --ondisk=vda --grow
|
|
||||||
volgroup rocky pv.01
|
|
||||||
logvol / --vgname=rocky --size=8000 --name=root --grow
|
|
||||||
shutdown
|
shutdown
|
||||||
|
|
||||||
url --url https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/
|
# Partition stuff
|
||||||
|
part /boot/efi --fstype=efi --asprimary --onpart=vda1
|
||||||
|
part /boot --fstype=xfs --label=boot --onpart=vda2
|
||||||
|
part prepboot --fstype=biosboot --asprimary --onpart=vda3
|
||||||
|
part biosboot --fstype=biosboot --asprimary --onpart=vda4
|
||||||
|
part pv.01 --grow --onpart=vda5
|
||||||
|
volgroup rocky pv.01
|
||||||
|
logvol / --vgname=rocky --size=8000 --name=root --grow --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 ext2 1106MiB 10.7GB
|
||||||
|
parted /dev/vda set 5 lvm on
|
||||||
|
%end
|
||||||
|
|
||||||
%packages
|
%packages
|
||||||
@core
|
@core
|
||||||
@ -181,6 +197,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -28,18 +28,35 @@ selinux --enforcing
|
|||||||
# System services
|
# System services
|
||||||
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
|
services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd"
|
||||||
# System bootloader configuration
|
# 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
|
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 libiscsi.debug_libiscsi_eh=1 netroot=iscsi:169.254.0.2:::1:iqn.2015-02.oracle.boot:uefi ip=dhcp rd.iscsi.bypass rd.iscsi.param=node.session.timeo.replacement_timeout=6000" --location=mbr --timeout=1 --boot-drive=vda
|
||||||
# Clear the Master Boot Record
|
|
||||||
zerombr
|
|
||||||
# Partition clearing information
|
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
|
||||||
# Disk partitioning information
|
# Disk partitioning information
|
||||||
part biosboot --fstype="biosboot" --size=1
|
part /boot/efi --fstype="efi" --onpart=vda1
|
||||||
part /boot/efi --fstype="efi" --size=100
|
part /boot --fstype="xfs" --label=boot --onpart=vda2
|
||||||
part /boot --fstype="xfs" --size=1000 --label=boot
|
part prepboot --fstype="prepboot" --onpart=vda3
|
||||||
part pv.01 --grow --ondisk=vda --size=1
|
part biosboot --fstype="biosboot" --onpart=vda4
|
||||||
|
part pv.01 --grow --size=1 --onpart=vda5
|
||||||
volgroup rocky pv.01
|
volgroup rocky pv.01
|
||||||
logvol / --grow --size=8000 --name=root --vgname=rocky
|
logvol / --grow --size=8000 --mkfsoptions="-m bigtime=0,inobtcount=0" --name=root --vgname=rocky
|
||||||
|
|
||||||
|
%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 ext2 1106MiB 10.7GB
|
||||||
|
parted /dev/vda set 5 lvm on
|
||||||
|
%end
|
||||||
|
|
||||||
%post --erroronfail
|
%post --erroronfail
|
||||||
# Attempting to force legacy BIOS boot if we boot from UEFI
|
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||||
@ -116,6 +133,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
@ -273,9 +291,6 @@ base64 -d <<<"$OCICLOUDCFG" >> /etc/cloud/cloud.cfg.d/99_oci.cfg
|
|||||||
KERNEL_VERSION=$(rpm -q kernel --qf '%%{V}-%%{R}.%%{arch}\n')
|
KERNEL_VERSION=$(rpm -q kernel --qf '%%{V}-%%{R}.%%{arch}\n')
|
||||||
dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
||||||
|
|
||||||
# OCI needs Iscsi
|
|
||||||
grubby --args="libiscsi.debug_libiscsi_eh=1 netroot=iscsi:169.254.0.2:::1:iqn.2015-02.oracle.boot:uefi ip=dhcp rd.iscsi.bypass rd.iscsi.param=node.session.timeo.replacement_timeout=6000" --update-kernel "/boot/vmlinuz-$KERNEL_VERSION"
|
|
||||||
|
|
||||||
passwd -d root
|
passwd -d root
|
||||||
passwd -l root
|
passwd -l root
|
||||||
|
|
||||||
|
@ -25,16 +25,35 @@ skipx
|
|||||||
# System services
|
# System services
|
||||||
services --enabled="vmtoolsd"
|
services --enabled="vmtoolsd"
|
||||||
# System bootloader configuration
|
# System bootloader configuration
|
||||||
bootloader --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop" --location=mbr --timeout=1
|
bootloader --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop rd.lvm.vg=rocky rd.lvm.lv=rocky/root" --location=mbr --timeout=1
|
||||||
# Clear the Master Boot Record
|
|
||||||
zerombr
|
|
||||||
# Partition clearing information
|
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
|
||||||
# Disk partitioning information
|
# Disk partitioning information
|
||||||
part biosboot --size=1 --fstype=biosboot --asprimary
|
part /boot/efi --fstype="efi" --onpart=vda1
|
||||||
part /boot/efi --size=100 --fstype=efi --asprimary
|
part /boot --fstype="xfs" --label=boot --onpart=vda2
|
||||||
part /boot --size=1000 --fstype=xfs --label=boot
|
part prepboot --fstype="prepboot" --onpart=vda3
|
||||||
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0" --grow
|
part biosboot --fstype="biosboot" --onpart=vda4
|
||||||
|
part pv.01 --grow --size=1 --onpart=vda5
|
||||||
|
volgroup rocky pv.01
|
||||||
|
logvol / --grow --size=8000 --mkfsoptions="-m bigtime=0,inobtcount=0" --name=root --vgname=rocky
|
||||||
|
|
||||||
|
%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 ext2 1106MiB 10.7GB
|
||||||
|
parted /dev/vda set 5 lvm on
|
||||||
|
%end
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# Attempting to force legacy BIOS boot if we boot from UEFI
|
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||||
|
@ -166,6 +166,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -166,6 +166,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,28 @@
|
|||||||
zerombr
|
part /boot/efi --fstype=efi --asprimary --onpart=vda1
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
part /boot --fstype=xfs --label=boot --onpart=vda2
|
||||||
part biosboot --size=1 --fstype=biosboot --asprimary
|
part prepboot --fstype=biosboot --asprimary --onpart=vda3
|
||||||
part /boot/efi --size=100 --fstype=efi --asprimary
|
part biosboot --fstype=biosboot --asprimary --onpart=vda4
|
||||||
part /boot --size=1000 --fstype=xfs --label=boot
|
part pv.01 --grow --onpart=vda5
|
||||||
part pv.01 --size=1 --ondisk=vda --grow
|
|
||||||
volgroup rocky pv.01
|
volgroup rocky pv.01
|
||||||
logvol / --vgname=rocky --size=8000 --name=root --grow
|
logvol / --vgname=rocky --size=8000 --name=root --grow --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 ext2 1106MiB 10.7GB
|
||||||
|
parted /dev/vda set 5 lvm on
|
||||||
|
%end
|
||||||
|
|
||||||
|
|
||||||
|
@ -80,6 +80,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -80,6 +80,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -83,6 +83,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -83,6 +83,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
%include rocky-cloud-parts-lvm.ks
|
%include rocky-cloud-parts-lvm.ks
|
||||||
%include rocky-cloud-ocp-packages.ks
|
%include rocky-cloud-ocp-packages.ks
|
||||||
|
|
||||||
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
|
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
|
||||||
repo --name="oraclelinux-addons" --baseurl=http://yum.oracle.com/repo/OracleLinux/OL8/addons/$basearch/ --install --includepkgs="oci-utils"
|
repo --name="oraclelinux-addons" --baseurl=http://yum.oracle.com/repo/OracleLinux/OL8/addons/$basearch/ --install --includepkgs="oci-utils"
|
||||||
|
|
||||||
%post --erroronfail
|
%post --erroronfail
|
||||||
@ -80,6 +80,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user