Skip to content

Commit

Permalink
[Ubuntu] Disable motd updates metadata (#4873)
Browse files Browse the repository at this point in the history
* Disable motd updates metadata

* check daemon.conf config exists

* mask fwupd-refresh.timer service
  • Loading branch information
al-cheb authored Jan 13, 2022
1 parent 59bc59f commit 7b97194
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion images/linux/scripts/installers/configure-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,12 @@ echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf

# Create symlink for tests running
chmod +x $HELPER_SCRIPTS/invoke-tests.sh
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests

# Disable motd updates metadata
sed -i 's/ENABLED=1/ENABLED=0/g' /etc/default/motd-news

if [[ -f "/etc/fwupd/daemon.conf" ]]; then
sed -i 's/UpdateMotd=true/UpdateMotd=false/g' /etc/fwupd/daemon.conf
systemctl mask fwupd-refresh.timer
fi

0 comments on commit 7b97194

Please sign in to comment.