[Bug 1855290] [NEW] Don't run /usr/lib/update-notifier/update-motd-hwe-eol in containers

Balint Reczey balint.reczey at canonical.com
Thu Dec 5 14:01:28 UTC 2019


Public bug reported:

[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.

** Affects: update-notifier (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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:
  New

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