Please ship empty /etc/fstab in LXD images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Systemd boots degraded because of the invalid content of /etc/fstab:
$ lxc shell gg-test
root@gg-test:~# systemctl is-system-running
degraded
root@gg-test:~# systemctl list-units --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed.
root@gg-test:~# cat /etc/fstab
LABEL=cloudimg-
root@gg-test:~# echo "" > /etc/fstab
root@gg-test:~# reboot
Session terminated, killing shell... ...killed.
rbalint@yogi:~$ lxc shell gg-test
root@gg-test:~# systemctl is-system-running
running
root@gg-test:~# systemctl list-units --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
0 loaded units listed.
Not shipping is also fixing the issue, but some programs (such as systemd autopkgtes) reads fstab and a missing fstab should be special-cased, thus that would cause more breakages.
Related branches
- Dimitri John Ledkov (community): Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 89 lines (+20/-10)6 files modifiedlive-build/auto/config (+1/-0)
live-build/functions (+11/-0)
live-build/squashfs-exclude-files (+1/-0)
live-build/ubuntu-cpc/hooks.d/base/root-squashfs.binary (+5/-4)
live-build/ubuntu-server/hooks/030-root-squashfs.binary (+1/-3)
live-build/ubuntu-server/hooks/032-installer-squashfs.binary (+1/-3)
tags: | added: id-596e17fac6e5ac8ded74a8ee |
Changed in systemd (Ubuntu): | |
status: | Triaged → Invalid |
This bug was fixed in the package livecd-rootfs - 2.668
---------------
livecd-rootfs (2.668) groovy; urgency=medium
[ Łukasz 'sil2100' Zemczak ]
* Enable overrides of UC20 grade dangerous channels - as this is possible.
(LP: #1879350)
[ Patrick Wu ] ubuntu/ hooks/040- hyperv- desktop- images. binary: fix issues
* live-build/
with Hyper-V xrdp support.
[ Balint Reczey ]
* Remove fstab from squashfs images (LP: #1877078)
-- Dimitri John Ledkov <email address hidden> Tue, 23 Jun 2020 15:05:11 +0100