make sure to start ocid

This commit is contained in:
Neil Hanlon 2023-01-24 18:23:19 -05:00
parent 63060451bc
commit 8303b8ab11
Signed by untrusted user: neil
GPG Key ID: 705BC21EC3C70F34
1 changed files with 3 additions and 0 deletions

View File

@ -323,6 +323,9 @@ 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):
KERNEL_VERSION=$(rpm -q kernel --qf '%%{V}-%%{R}.%%{arch}\n')
dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION