From c12b03da9c3b396eb5c64dc01054dd69e5c07d54 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 1 May 2024 15:48:40 -0700 Subject: [PATCH] /etc/tuned/active_profile isnt there --- config.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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