From 7b9719416be32082cfc5fe7abf9cd25c29f89858 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Thu, 13 Jan 2022 11:23:56 +0300 Subject: [PATCH] [Ubuntu] Disable motd updates metadata (#4873) * Disable motd updates metadata * check daemon.conf config exists * mask fwupd-refresh.timer service --- .../linux/scripts/installers/configure-environment.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/images/linux/scripts/installers/configure-environment.sh b/images/linux/scripts/installers/configure-environment.sh index d3c99fcf4..851e113a8 100644 --- a/images/linux/scripts/installers/configure-environment.sh +++ b/images/linux/scripts/installers/configure-environment.sh @@ -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 \ No newline at end of file +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