systemd-detect-virt is missing on Groovy EC2 AMI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Fix Released
|
Critical
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Critical
|
Unassigned |
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/
ubuntu@
systemd: /usr/bin/
systemd: /usr/share/
systemd: /usr/share/
ubuntu@
ls: cannot access '/usr/bin/
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)
Related branches
- Robert C Jennings: Pending requested
-
Diff: 109 lines (+48/-19) (has conflicts)2 files modifieddebian/changelog (+44/-19)
live-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot (+4/-0)
- Balint Reczey: Approve
- John Chittum (community): Approve
- Pat Viafore (community): Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 15 lines (+3/-1)1 file modifiedlive-build/functions (+3/-1)
tags: | added: rls-gg-incoming |
summary: |
- systemd-detect-virt is missing on Groovy arm64 EC2 AMI + systemd-detect-virt is missing on Groovy EC2 AMI |
Changed in cloud-images: | |
status: | New → Confirmed |
tags: | added: fr-923 |
tags: | removed: rls-gg-incoming |
Changed in livecd-rootfs (Ubuntu Groovy): | |
importance: | Undecided → Critical |
status: | New → Triaged |
no longer affects: | cloud-images/groovy |
description: | updated |
Changed in cloud-images: | |
status: | Confirmed → Fix Released |
maybe we should run debsums as part of the build then.