Skip to content

Commit

Permalink
docs: update method to disable ESM messages in motd (#2974)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* chore: remove useless anchor from fips tutorial link

Signed-off-by: Renan Rodrigo <[email protected]>

---------

Signed-off-by: Renan Rodrigo <[email protected]>
  • Loading branch information
renanrodrigo authored Mar 13, 2024
1 parent af49756 commit 27e12dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
22 changes: 6 additions & 16 deletions docs/explanations/motd_messages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/howtoguides/enable_fips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 27e12dd

Please sign in to comment.