Fixes for azure on el9

This commit is contained in:
Neil Hanlon 2022-07-08 15:50:36 -04:00
parent 9e9e16aaa7
commit fbcd5f424d
Signed by: neil
GPG Key ID: 705BC21EC3C70F34

View File

@ -72,21 +72,21 @@ echo "virtual-guest" > /etc/tuned/active_profile
# For cloud images, 'eth0' _is_ the predictable device name, since # For cloud images, 'eth0' _is_ the predictable device name, since
# we don't want to be tied to specific virtual (!) hardware # we don't want to be tied to specific virtual (!) hardware
rm -f /etc/udev/rules.d/70* #rm -f /etc/udev/rules.d/70*
ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules #ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
# simple eth0 config, again not hard-coded to the build hardware # simple eth0 config, again not hard-coded to the build hardware
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF #cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF
DEVICE=eth0 #DEVICE=eth0
ONBOOT=yes #ONBOOT=yes
BOOTPROTO=dhcp #BOOTPROTO=dhcp
TYPE=Ethernet #TYPE=Ethernet
USERCTL=no #USERCTL=no
PEERDNS=yes #PEERDNS=yes
IPV6INIT=no #IPV6INIT=no
NM_CONTROLLED=yes #NM_CONTROLLED=yes
IPV4_DHCP_TIMEOUT=300 #IPV4_DHCP_TIMEOUT=300
EOF #EOF
cat << EOF | tee -a /etc/NetworkManager/conf.d/dhcp-timeout.conf cat << EOF | tee -a /etc/NetworkManager/conf.d/dhcp-timeout.conf
# Configure dhcp timeout to 300s by default # Configure dhcp timeout to 300s by default
@ -224,8 +224,8 @@ rm -f /var/lib/systemd/random-seed
rm -rf /root/anaconda-ks.cfg rm -rf /root/anaconda-ks.cfg
rm -rf /root/install.log rm -rf /root/install.log
rm -rf /root/install.log.syslog rm -rf /root/install.log.syslog
rm -rf /var/lib/yum/* rm -rf "/var/lib/yum/*"
rm -rf /var/log/anaconda* rm -rf "/var/log/anaconda*"
rm -rf /var/log/yum.log rm -rf /var/log/yum.log
# Wipe machineid # Wipe machineid
@ -250,7 +250,6 @@ cloud-init
cloud-utils-growpart cloud-utils-growpart
NetworkManager NetworkManager
dracut-config-generic dracut-config-generic
dracut-norescue
firewalld firewalld
gdisk gdisk
grub2 grub2