[Bug 1902260] Re: systemd-detect-virt is missing on Groovy EC2 AMI

Ɓukasz Zemczak 1902260 at bugs.launchpad.net
Tue Feb 9 11:27:05 UTC 2021


Hello Balint, or anyone else affected,

Accepted livecd-rootfs into xenial-proposed. The package will build now
and be available at https://launchpad.net/ubuntu/+source/livecd-
rootfs/2.408.66 in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
xenial to verification-done-xenial. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-xenial. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: livecd-rootfs (Ubuntu Xenial)
       Status: New => Fix Committed

** Tags added: verification-needed-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1902260

Title:
  systemd-detect-virt is missing on Groovy EC2 AMI

Status in cloud-images:
  Confirmed
Status in livecd-rootfs package in Ubuntu:
  Fix Released
Status in livecd-rootfs source package in Xenial:
  Fix Committed
Status in livecd-rootfs source package in Bionic:
  Fix Committed
Status in livecd-rootfs source package in Focal:
  Fix Committed
Status in livecd-rootfs source package in Groovy:
  Fix Committed

Bug description:
  [Impact]

   * On some image types, systemd-detect-virt might be missing

  [Test Case]

   * $ sudo systemd-detect-virt

  Should print a word.

  If it prints "no such file or directory" it is buggy.

  Best reproduced on initrdless boot, public cloud, where kernel flavour
  is switched, such as GCP groovy or AWS EC2 groovy. However other image
  types might be affected too.

  Backporting the change to all series, in case there are other places
  which invoke undivert_grub multiple times in a row.

  [Where problems could occur]

   * Hopefully, systemd-detect-virt undivert is now correct. Issues
  might happen in case systemd is not meant to be installed and yet the
  file remains on disk; or if the diversion is not removed still.
  Resulting in incorrect runtime behaviour.

   * For the images where this is fixed, systemd-detect-virt will now
  start working correctly. Thus may trigger automation to run that
  relied on missing systemd-detect-virt and thus previously did not
  execute.

  [Other Info]
   
   * Original bug report

  
  ubuntu/images/hvm-ssd/ubuntu-groovy-20.10-arm64-server-20201022.1

  ubuntu at ip-172-31-30-199:~$ dpkg -S systemd-detect-virt
  systemd: /usr/bin/systemd-detect-virt
  systemd: /usr/share/bash-completion/completions/systemd-detect-virt
  systemd: /usr/share/man/man1/systemd-detect-virt.1.gz
  ubuntu at ip-172-31-30-199:~$ ls /usr/bin/systemd-detect-virt
  ls: cannot access '/usr/bin/systemd-detect-virt': No such file or directory

  Since livecd-rootfs plays with diversions of this file it looks
  suspicious, but I have not fully triaged the problem.

  LXD image for amd64 seems to be ok: ubuntu 20.10 amd64 (release)
  (20201022.1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1902260/+subscriptions



More information about the foundations-bugs mailing list