mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 09:31:34 -05:00
Fix tuned handling
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
1aecfcd3a5
commit
9610e72d95
@ -128,9 +128,6 @@ sudo systemctl enable --now tuned
|
||||
if [ "$virtualization" = 'none' ]; then
|
||||
sudo tuned-adm profile latency-performance
|
||||
else
|
||||
if [ "$virtualization" = 'kvm' ]; then
|
||||
sudo dnf install -y qemu-guest-agent
|
||||
fi
|
||||
sudo tuned-adm profile virtual-guest
|
||||
fi
|
||||
|
||||
|
@ -110,12 +110,12 @@ sudo systemctl enable --now fstrim.timer
|
||||
### Differentiating bare metal and virtual installs
|
||||
|
||||
# Setup tuned
|
||||
if [ "$virtualization" = 'none' ]; then
|
||||
output "Bare Metal installation. Tuned will not be set up here - PPD should take care of it."
|
||||
else
|
||||
sudo apt purge -y power-profiles-daemon
|
||||
sudo apt install -y tuned
|
||||
systemctl enable --now tuned
|
||||
sudo systemctl enable --now tuned
|
||||
|
||||
if [ "$virtualization" = 'none' ]; then
|
||||
sudo tuned-adm profile latency-performance
|
||||
else
|
||||
sudo tuned-adm profile virtual-guest
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user