/etc/tuned/active_profile isnt there

This commit is contained in:
Louis Abel 2024-05-01 15:48:40 -07:00
parent 0470edcf68
commit c12b03da9c
Signed by untrusted user: label
GPG Key ID: 2A6975660E424560

View File

@ -128,7 +128,9 @@ function common_cloud_steps() {
sed -i '/^#NAutoVTs=.*/ a\
NAutoVTs=0' /etc/systemd/logind.conf
truncate -s 0 /etc/resolv.conf
echo "virtual-guest" > /etc/tuned/active_profile
if [ -f /etc/tuned/active_profile ]; then
echo "virtual-guest" > /etc/tuned/active_profile
fi
rm -f /etc/udev/rules.d/70*
ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
cat > /etc/sysconfig/network << EOF