diff --git a/config.sh b/config.sh index 1351638..ff71b08 100644 --- a/config.sh +++ b/config.sh @@ -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