Comment # 14 on bug 1175850 from
Created attachment 844939 [details]
systemd debug logs

(In reply to Franck Bui from comment #13)
> In reply to Fabian Vogt from comment #11)
> > So if unmounting /var needs udev, there's a cycle...
> > Apparently cryptsetup@ units don't set a dependency on udev, so that's why
> > it fails that way.
> > 
> > On boot there's no cycle, because /var and /etc are mounted from the initrd
> > using the initrd's udev.
> 
> Then both /var and /etc are supposed to be unmounted in initrd, no ?

AFAICT the initrd is not used during shutdown currently.

> What do /etc/{fstab,crypttab} look like on the affected systems ?

I just installed MicroOS with encrypted / and /var partitions and was able to
reproduce the problem.

f224:~ # cat /etc/crypttab
cr_root  UUID=1621a42e-c635-4b81-88a7-475267426692  none  x-initrd.attach
cr_var   UUID=1d90dc3a-c9e2-4971-b8da-4751351c94a5
f224:~ # cat /etc/fstab
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c  /                       btrfs  ro   
                        0  0
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c  /usr/local              btrfs 
subvol=/@/usr/local           0  0
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c  /srv                    btrfs 
subvol=/@/srv                 0  0
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c /root btrfs
subvol=/@/root,x-initrd.mount 0 0
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c  /opt                    btrfs 
subvol=/@/opt                 0  0
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c  /home                   btrfs 
subvol=/@/home                0  0
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c  /boot/writable          btrfs 
subvol=/@/boot/writable       0  0
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c  /boot/grub2/x86_64-efi  btrfs 
subvol=/@/boot/grub2/x86_64-efi  0  0
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c  /boot/grub2/i386-pc     btrfs 
subvol=/@/boot/grub2/i386-pc  0  0
UUID=e8d1cd5b-6020-4cad-9d9d-15d547cc2b2c  /.snapshots             btrfs 
subvol=/@/.snapshots          0  0
UUID=72a8d278-c003-4fb8-96dc-bdbf29dcd37a /var btrfs defaults,x-initrd.mount 0
0
overlay /etc overlay
defaults,lowerdir=/sysroot/etc,upperdir=/sysroot/var/lib/overlay/1/etc,workdir=/sysroot/var/lib/overlay/work-etc,x-systemd.requires-mounts-for=/var,x-systemd.requires-mounts-for=/sysroot/var,x-initrd.mount
0 0

Logs of the full boot and shutdown with systemd.log_level=debug are attached.


You are receiving this mail because: