From 27e12dd7bff543cde53e23c9e03593a847af7d82 Mon Sep 17 00:00:00 2001 From: Renan Rodrigo Date: Wed, 13 Mar 2024 11:47:44 -0300 Subject: [PATCH] docs: update method to disable ESM messages in motd (#2974) * docs: update method to disable ESM messages in motd We will use a marker file rather than an option to the config file. Signed-off-by: Renan Rodrigo * chore: remove useless anchor from fips tutorial link Signed-off-by: Renan Rodrigo --------- Signed-off-by: Renan Rodrigo --- docs/explanations/motd_messages.rst | 22 ++++++---------------- docs/howtoguides/enable_fips.rst | 2 +- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/docs/explanations/motd_messages.rst b/docs/explanations/motd_messages.rst index d7ebc7a3f6..9a79ce8bbc 100644 --- a/docs/explanations/motd_messages.rst +++ b/docs/explanations/motd_messages.rst @@ -220,27 +220,17 @@ Source: MOTD about available updates If you want to remove the messages about Ubuntu Pro and ESM from the MOTD output, but still want to keep the messages about the regular and security -updates, edit the ``/etc/apt/apt.conf.d/99update-notifier`` file. Add the -``--no-esm-messages`` flag to **all calls** of the update script. For example, -change the following line from: - -.. code-block:: bash - - APT::Update::Post-Invoke-Success {"/usr/lib/update-notifier/update-motd-updates-available 2>/dev/null || true";}; - -to: - -.. code-block:: bash - - APT::Update::Post-Invoke-Success {"/usr/lib/update-notifier/update-motd-updates-available --no-esm-messages 2>/dev/null || true";}; +updates, create a file named ``/var/lib/update-notifier/hide-esm-in-motd``. +There is no need for any content in the file - its existence is enough to +tell update-notifier, and the Pro Client, to suppress the messages. Keep in mind that the change in the MOTD message may take some time - if you -want to remove the ESM related messages immediately, run the script yourself -using `--force `: +want to remove the ESM related messages immediately, create the file and run +the script which generates the messages using ``--force``: .. code-block:: bash -$ sudo /usr/lib/update-notifier/update-motd-updates-available --no-esm-messages --force + $ sudo /usr/lib/update-notifier/update-motd-updates-available --force If you want to disable all messages from update-notifier (not just related to Ubuntu Pro and ESM) about potentially available updates, just remove the diff --git a/docs/howtoguides/enable_fips.rst b/docs/howtoguides/enable_fips.rst index e6585737d4..4e0a7e5e58 100644 --- a/docs/howtoguides/enable_fips.rst +++ b/docs/howtoguides/enable_fips.rst @@ -69,4 +69,4 @@ removing also the FIPS kernel, see .. include:: ../links.txt -.. _16.04, 18.04 and 20.04: https://ubuntu.com/tutorials/using-the-ubuntu-pro-client-to-enable-fips#1-overview +.. _16.04, 18.04 and 20.04: https://ubuntu.com/tutorials/using-the-ubuntu-pro-client-to-enable-fips