mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-09 11:41:33 -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
|
if [ "$virtualization" = 'none' ]; then
|
||||||
sudo tuned-adm profile latency-performance
|
sudo tuned-adm profile latency-performance
|
||||||
else
|
else
|
||||||
if [ "$virtualization" = 'kvm' ]; then
|
|
||||||
sudo dnf install -y qemu-guest-agent
|
|
||||||
fi
|
|
||||||
sudo tuned-adm profile virtual-guest
|
sudo tuned-adm profile virtual-guest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -110,24 +110,24 @@ sudo systemctl enable --now fstrim.timer
|
|||||||
### Differentiating bare metal and virtual installs
|
### Differentiating bare metal and virtual installs
|
||||||
|
|
||||||
# Setup tuned
|
# Setup tuned
|
||||||
|
sudo apt install -y tuned
|
||||||
|
sudo systemctl enable --now tuned
|
||||||
|
|
||||||
if [ "$virtualization" = 'none' ]; then
|
if [ "$virtualization" = 'none' ]; then
|
||||||
output "Bare Metal installation. Tuned will not be set up here - PPD should take care of it."
|
sudo tuned-adm profile latency-performance
|
||||||
else
|
else
|
||||||
sudo apt purge -y power-profiles-daemon
|
|
||||||
sudo apt install -y tuned
|
|
||||||
systemctl enable --now tuned
|
|
||||||
sudo tuned-adm profile virtual-guest
|
sudo tuned-adm profile virtual-guest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup fwupd
|
# Setup fwupd
|
||||||
if [ "$virtualization" = 'none' ]; then
|
if [ "$virtualization" = 'none' ]; then
|
||||||
sudo apt install -y fwupd
|
sudo apt install -y fwupd
|
||||||
echo 'UriSchemes=file;https' | sudo tee -a /etc/fwupd/fwupd.conf
|
echo 'UriSchemes=file;https' | sudo tee -a /etc/fwupd/fwupd.conf
|
||||||
sudo systemctl restart fwupd
|
sudo systemctl restart fwupd
|
||||||
mkdir -p /etc/systemd/system/fwupd-refresh.service.d
|
mkdir -p /etc/systemd/system/fwupd-refresh.service.d
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/system/fwupd-refresh.service.d/override.conf | sudo tee /etc/systemd/system/fwupd-refresh.service.d/override.conf
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/system/fwupd-refresh.service.d/override.conf | sudo tee /etc/systemd/system/fwupd-refresh.service.d/override.conf
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable --now fwupd-refresh.timer
|
sudo systemctl enable --now fwupd-refresh.timer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup unbound
|
# Setup unbound
|
||||||
|
Loading…
Reference in New Issue
Block a user