1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-22 17:41:32 -05:00

fwupd hardening on Red Hat systems

This commit is contained in:
Tommy 2023-10-03 15:02:30 -07:00 committed by GitHub
parent c88da56eb2
commit ab72f9eba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,8 @@ sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/*
# Update packages and firmware # Update packages and firmware
sudo dnf upgrade -y 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 get-devices
sudo fwupdmgr refresh --force sudo fwupdmgr refresh --force
sudo fwupdmgr get-updates -y sudo fwupdmgr get-updates -y

View File

@ -154,6 +154,8 @@ sudo systemctl enable --now dnf-automatic.timer
#Setup fwupd #Setup fwupd
sudo dnf install fwupd -y 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 mkdir -p /etc/systemd/system/fwupd-refresh.service.d
echo '[Service] echo '[Service]
ExecStart=/usr/bin/fwupdmgr update' | tee /etc/systemd/system/fwupd-refresh.service.d/override.conf ExecStart=/usr/bin/fwupdmgr update' | tee /etc/systemd/system/fwupd-refresh.service.d/override.conf