[Bug 1877078] [NEW] Please ship empty /etc/fstab in LXD images

Balint Reczey balint.reczey at canonical.com
Wed May 6 09:58:04 UTC 2020


Public bug reported:

Systemd boots degraded because of the invalid content of /etc/fstab:

$ lxc shell gg-test 
root at gg-test:~# systemctl is-system-running 
degraded
root at gg-test:~# systemctl list-units --failed 
  UNIT                       LOAD   ACTIVE SUB    DESCRIPTION                         
● systemd-remount-fs.service loaded failed failed Remount Root and Kernel File Systems

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 at gg-test:~# cat /etc/fstab 
LABEL=cloudimg-rootfs	/	 ext4	defaults	0 0
root at gg-test:~# echo "" > /etc/fstab 
root at gg-test:~# reboot

Session terminated, killing shell... ...killed.
rbalint at yogi:~$ lxc shell gg-test 
root at gg-test:~# systemctl is-system-running 
running
root at 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.

** Affects: livecd-rootfs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1877078

Title:
  Please ship empty /etc/fstab in LXD images

Status in livecd-rootfs package in Ubuntu:
  New

Bug description:
  Systemd boots degraded because of the invalid content of /etc/fstab:

  $ lxc shell gg-test 
  root at gg-test:~# systemctl is-system-running 
  degraded
  root at gg-test:~# systemctl list-units --failed 
    UNIT                       LOAD   ACTIVE SUB    DESCRIPTION                         
  ● systemd-remount-fs.service loaded failed failed Remount Root and Kernel File Systems

  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 at gg-test:~# cat /etc/fstab 
  LABEL=cloudimg-rootfs	/	 ext4	defaults	0 0
  root at gg-test:~# echo "" > /etc/fstab 
  root at gg-test:~# reboot

  Session terminated, killing shell... ...killed.
  rbalint at yogi:~$ lxc shell gg-test 
  root at gg-test:~# systemctl is-system-running 
  running
  root at 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1877078/+subscriptions



More information about the foundations-bugs mailing list