[Bug 1855290] Re: Don't run /usr/lib/update-notifier/update-motd-hwe-eol in containers
Launchpad Bug Tracker
1855290 at bugs.launchpad.net
Thu Dec 5 23:53:43 UTC 2019
This bug was fixed in the package update-notifier - 3.192.27
---------------
update-notifier (3.192.27) focal; urgency=medium
* Notify user about stale updates information in motd (LP: #1842159)
* Make /var/lib/update-notifier/updates-available world-readable
(LP: #1844704)
* data/update-motd-hwe-eol: Run as a regular user without printing errors
(LP: #185527)
* data/update-motd-hwe-eol: Shortcut script when running in a container.
There is no point in checking the HWE stack in a container since upgrading
it would not affect the host system. (LP: #1855290)
* data/update-motd-fsck-at-reboot: Shortcut script when running it as
a regular user (LP: #185527)
-- Balint Reczey <rbalint at ubuntu.com> Thu, 05 Dec 2019 15:02:52 +0100
** Changed in: update-notifier (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1855290
Title:
Don't run /usr/lib/update-notifier/update-motd-hwe-eol in containers
Status in update-notifier package in Ubuntu:
Fix Released
Bug description:
[Impact]
* Information of HWE kernels are shown in containers despite this information is useless most of the time since containers use the host systems' kernels.
* The check for HWE kernels is noticably slow OTOH, taking around 0.2s on my intel i5 laptop.
[Test Case]
* Run the script in a container to see it being shortcut:
$ bash -x /usr/lib/update-notifier/update-motd-hwe-eol
+ '[' '' = --force ']'
+ type systemd-detect-virt
+ systemd-detect-virt -q -c
+ exit
* Run the script in a VM of without virtualization to see it still taking long time to execute:
$ time /usr/lib/update-notifier/update-motd-hwe-eol
real 0m0.241s
user 0m0.170s
sys 0m0.073s
[Regression Potential]
* The fix is very simple there is no expected regression.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1855290/+subscriptions
More information about the foundations-bugs
mailing list