Re: [systemd-devel] udev and dm inotify problems

2015-07-28 Thread Oleksii Shevchuk
Most likely you built your LVM/dm userspace without proper udev support, or left support in there that creates device nodes on its own. Nowadays with devtmpfs device nodes are created exclusively by the kernel and userspace should never create a single device node. If your LVM/DM tools

Re: [systemd-devel] udev and dm inotify problems

2015-07-27 Thread Lennart Poettering
On Sun, 26.07.15 11:39, Oleksii Shevchuk (alx...@gmail.com) wrote: Andrei Borzenkov arvidj...@gmail.com writes: Could you verify with e.g. inotifywatch whether inotify event was generated by kernel? It turns out, that for some reason I have several dm devices: # ls -l

Re: [systemd-devel] udev and dm inotify problems

2015-07-27 Thread Andrei Borzenkov
В Mon, 27 Jul 2015 08:15:45 +0300 Oleksii Shevchuk alx...@gmail.com пишет: Andrei Borzenkov arvidj...@gmail.com writes: So that it the problem. Does it happen if you use cryptsetup directly? Yes, with cryptsetup behavior is the same. I have cryptsetup (1.6.7) and lvm2 (2.02.116).

Re: [systemd-devel] udev and dm inotify problems

2015-07-26 Thread Oleksii Shevchuk
Andrei Borzenkov arvidj...@gmail.com writes: Could you verify with e.g. inotifywatch whether inotify event was generated by kernel? It turns out, that for some reason I have several dm devices: # ls -l /dev/mapper/ crw-rw 1 root dialout 10, 236 ??? 25 09:52 control brw--- 1 root

Re: [systemd-devel] udev and dm inotify problems

2015-07-26 Thread Andrei Borzenkov
В Sun, 26 Jul 2015 11:39:17 +0300 Oleksii Shevchuk alx...@gmail.com пишет: Andrei Borzenkov arvidj...@gmail.com writes: Could you verify with e.g. inotifywatch whether inotify event was generated by kernel? It turns out, that for some reason I have several dm devices: # ls -l

[systemd-devel] udev and dm inotify problems

2015-07-25 Thread Oleksii Shevchuk
Hi list. I ran into the strange problem. After creating encrypted swap (with crypttab) boot hangs. That happens because systemd waits for dev-mapper-swap.device. Udev doesn't report that this device active, because SYSTEMD_READY environment set to 0. That happens because change event was not

Re: [systemd-devel] udev and dm inotify problems

2015-07-25 Thread Andrei Borzenkov
В Sat, 25 Jul 2015 09:51:25 +0300 Oleksii Shevchuk alx...@gmail.com пишет: Hi list. I ran into the strange problem. After creating encrypted swap (with crypttab) boot hangs. That happens because systemd waits for dev-mapper-swap.device. Udev doesn't report that this device active,