Default ubuntu 20.04 image contains failed systemd job

$ sudo lxc launch -e ubuntu:20.04 u1
$ sudo lxc exec u1 systemctl | grep failed
● systemd-remount-fs.service           loaded failed failed    Remount Root and Kernel File Systems
$ sudo lxc exec u1 systemctl status systemd-remount-fs.service
● systemd-remount-fs.service - Remount Root and Kernel File Systems
     Loaded: loaded (/lib/systemd/system/systemd-remount-fs.service; enabled-runtime; vendor >
     Active: failed (Result: exit-code) since Tue 2020-12-01 17:25:14 UTC; 26min ago
       Docs: man:systemd-remount-fs.service(8)
             https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
   Main PID: 64 (code=exited, status=1/FAILURE)

Dec 01 17:25:14 u1 systemd-remount-fs[75]: mount: /: can't find LABEL=cloudimg-rootfs.
Warning: journal has been rotated since unit was started, output may be incomplete.

On an older Ubuntu 18.04 container I have, the service contains ConditionVirtualization=!container. Should this be added back? I’m not finding where or why that was removed.

Probably so or alternatively edit your /etc/fstab to drop the cloudimg-rootfs entry.

1 Like