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:
parent
51989ace15
commit
a9a0b15b3a
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user