remove system.devices from lvm variants (#9) (#10)

Potential PR for issue #9

Co-authored-by: Louis Abel <label@rockylinux.org>
Reviewed-on: #10
Co-authored-by: Louis Abel <label@noreply@resf.org>
Co-committed-by: Louis Abel <label@noreply@resf.org>
This commit is contained in:
Louis Abel 2023-04-27 01:17:08 +00:00 committed by Neil Hanlon
parent 51989ace15
commit a9a0b15b3a
7 changed files with 24 additions and 0 deletions

View File

@ -219,6 +219,9 @@ touch /var/log/boot.log
mkdir -p /var/cache/yum mkdir -p /var/cache/yum
/usr/sbin/fixfiles -R -a restore /usr/sbin/fixfiles -R -a restore
# LVM Variant Fix, remove system.devices
rm -fv /etc/lvm/devices/system.devices
true true
%end %end

View File

@ -224,5 +224,8 @@ cat >> /etc/chrony.conf << EOF
server 169.254.169.123 prefer iburst minpoll 4 maxpoll 4 server 169.254.169.123 prefer iburst minpoll 4 maxpoll 4
EOF EOF
# LVM Variant Fix, remove system.devices
rm -fv /etc/lvm/devices/system.devices
%end %end

View File

@ -228,6 +228,9 @@ cat /dev/null > /etc/machine-id
# reorder console entries # reorder console entries
#sed -i 's/console=tty0/console=tty0 console=ttyS0,115200n8/' /boot/grub2/grub.cfg #sed -i 's/console=tty0/console=tty0 console=ttyS0,115200n8/' /boot/grub2/grub.cfg
# LVM Variant Fix, remove system.devices
rm -fv /etc/lvm/devices/system.devices
true true
%end %end

View File

@ -163,6 +163,9 @@ touch /var/log/boot.log
mkdir -p /var/cache/yum mkdir -p /var/cache/yum
/usr/sbin/fixfiles -R -a restore /usr/sbin/fixfiles -R -a restore
# LVM Variant Fix, remove system.devices
rm -fv /etc/lvm/devices/system.devices
true true
%end %end

View File

@ -130,4 +130,7 @@ cat >> /etc/chrony.conf << EOF
server 169.254.169.123 prefer iburst minpoll 4 maxpoll 4 server 169.254.169.123 prefer iburst minpoll 4 maxpoll 4
EOF EOF
# LVM Variant Fix, remove system.devices
rm -fv /etc/lvm/devices/system.devices
%end %end

View File

@ -123,6 +123,9 @@ cat /dev/null > /etc/machine-id
# reorder console entries # reorder console entries
#sed -i 's/console=tty0/console=tty0 console=ttyS0,115200n8/' /boot/grub2/grub.cfg #sed -i 's/console=tty0/console=tty0 console=ttyS0,115200n8/' /boot/grub2/grub.cfg
# LVM Variant Fix, remove system.devices
rm -fv /etc/lvm/devices/system.devices
true true
%end %end

View File

@ -289,6 +289,12 @@ LSBwb3dlci1zdGF0ZS1jaGFuZ2UKCg=="
base64 -d <<<"$OCICLOUDCFG" >> /etc/cloud/cloud.cfg.d/99_oci.cfg base64 -d <<<"$OCICLOUDCFG" >> /etc/cloud/cloud.cfg.d/99_oci.cfg
# Remove system.devices because Oracle does things.
rm -fv /etc/lvm/devices/system.devices
# Start OCId
systemctl enable ocid
# Rerun dracut for the installed kernel (not the running kernel): # Rerun dracut for the installed kernel (not the running kernel):
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