mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-09 03:31:33 -05:00
fwupd hardening on Red Hat systems
This commit is contained in:
parent
c88da56eb2
commit
ab72f9eba9
@ -101,6 +101,8 @@ sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/*
|
||||
|
||||
# Update packages and firmware
|
||||
sudo dnf upgrade -y
|
||||
echo 'UriSchemes=file;https' | sudo tee -a /etc/fwupd/fwupd.conf
|
||||
sudo systemctl restart fwupd
|
||||
sudo fwupdmgr get-devices
|
||||
sudo fwupdmgr refresh --force
|
||||
sudo fwupdmgr get-updates -y
|
||||
|
@ -154,6 +154,8 @@ sudo systemctl enable --now dnf-automatic.timer
|
||||
|
||||
#Setup fwupd
|
||||
sudo dnf install fwupd -y
|
||||
echo 'UriSchemes=file;https' | sudo tee -a /etc/fwupd/fwupd.conf
|
||||
sudo systemctl restart fwupd
|
||||
mkdir -p /etc/systemd/system/fwupd-refresh.service.d
|
||||
echo '[Service]
|
||||
ExecStart=/usr/bin/fwupdmgr update' | tee /etc/systemd/system/fwupd-refresh.service.d/override.conf
|
||||
|
Loading…
Reference in New Issue
Block a user