Re: [systemd-devel] Luks + lvm in initrd

2014-12-04 Thread Luca Bruno
Thanks for your answer. Turns out this problem is not really about LVM. I've described the more general problem here: https://bugs.freedesktop.org/show_bug.cgi?id=85746 I don't know if that's expected or not, but I'd like to have some clearings if I'm doing something that I shouldn't do or not. A

Re: [systemd-devel] Luks + lvm in initrd

2014-12-04 Thread Lennart Poettering
On Tue, 28.10.14 23:51, Luca Bruno (lethalma...@gmail.com) wrote: > Hi, I'm going on with my work to have systemd in initrd on NixOS (using > dracut is a little complicated at the moment). > Everything works fine, I've ported luks and lvm and both work separately. > However I'm hitting a problem w

Re: [systemd-devel] Luks + lvm in initrd, complete scenario

2014-10-31 Thread Luca Bruno
Sorry for the spam. Further tracking down the issue. I think I've come to a conclusion of the scenario: S1.service requires/after D.device and S2.service S1 is activating, thus starts D and S2 S2 starts, which activates D and deactivates D A "can" now start because D has no job running [1], but D

Re: [systemd-devel] Luks + lvm in initrd, tracking the issue

2014-10-31 Thread Luca Bruno
I've tracked down the issue a little. sysroot.mount requires/after dev-vg-lv.device. System start, dev-vg-lv is inactive. vgchange -a y -> dev-vg-lv active. vgchange -a n -> dev-vg-lv inactive. At this point, unit->job of dev-vg-lv is NULL (sometimes also happens when I don't run vgchange, but I

[systemd-devel] Luks + lvm in initrd

2014-10-28 Thread Luca Bruno
Hi, I'm going on with my work to have systemd in initrd on NixOS (using dracut is a little complicated at the moment). Everything works fine, I've ported luks and lvm and both work separately. However I'm hitting a problem when using luks and lvm on top of luks. SETUP Software: systemd 212, lvm 2