Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-20 Thread Lennart Poettering
On Mon, 19.05.14 10:13, Peter Rajnoha (prajn...@redhat.com) wrote: broken. We start these things in parallel, they create these races without reason. Since ages we don't support non-devtmpfs kernels anymore, so it's *always* wrong to invoke mknod(), since the kernel will create the device

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-20 Thread Cristian Rodríguez
El 20/05/14 12:16, Lennart Poettering escribió: Please, remove the old cruft! Or at least disable it by default int the code! mdadm also has the same ugly assumptions.. even worst, it does not use libudev but determines if udev is running by : ( (stat(/dev/.udev, stb) == 0 || stat(/run/udev,

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-19 Thread Peter Rajnoha
On 05/15/2014 11:38 PM, Lennart Poettering wrote: On Thu, 15.05.14 23:15, Andy Kittner (andy.kitt...@gmail.com) wrote: | May 15 22:06:47 pinky systemd[1]: Mounted Runtime Directory. | May 15 22:06:47 pinky systemd[1]: Mounted Lock Directory. This looks like remains from a *really* old

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-18 Thread Andy Kittner
On 16/05/14 16:31, Lennart Poettering wrote: On Fri, 16.05.14 03:20, Andy Kittner (andy.kitt...@gmail.com) wrote: Minimal configurations? Are you kidding? If you want something minimal, then just use devtmpfs, and don't involve userspace at all in creating device nodes. This is not about

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-15 Thread Kay Sievers
On Thu, May 15, 2014 at 2:30 AM, Andy Kittner andy.kitt...@gmail.com wrote: On 14/05/14 18:33, Lennart Poettering wrote: On Tue, 13.05.14 20:01, Andy Kittner (andy.kitt...@gmail.com) wrote: | May 13 18:50:33 pinky systemd-udevd[2751]: conflicting device node '/dev/mapper/swap' found, link to

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-15 Thread Andy Kittner
On 15/05/14 10:16, Kay Sievers wrote: Are you running an initrd without udev, and/or tools that mess around with mknod in /dev? No, the initrd uses udev and is created by copying cryptsetup etc. including all dependent libraries from the host system. I recreated it yesterday, so there are the

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-15 Thread Lennart Poettering
On Thu, 15.05.14 02:30, Andy Kittner (andy.kitt...@gmail.com) wrote: On 14/05/14 18:33, Lennart Poettering wrote: On Tue, 13.05.14 20:01, Andy Kittner (andy.kitt...@gmail.com) wrote: | May 13 18:50:33 pinky systemd-udevd[2751]: conflicting device node '/dev/mapper/swap' found, link to

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-15 Thread Andy Kittner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 15/05/14 18:27, Lennart Poettering wrote: Well, something appears to create your device nodes, and it shouldn't do that... On a udev system userspace never creates any device nodes, that's done on its own by the kernel via devtmpfs, udev

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-15 Thread Kay Sievers
On Thu, May 15, 2014 at 11:15 PM, Andy Kittner andy.kitt...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 15/05/14 18:27, Lennart Poettering wrote: Well, something appears to create your device nodes, and it shouldn't do that... On a udev system userspace never

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-15 Thread Andy Kittner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 15/05/14 23:38, Lennart Poettering wrote: On Thu, 15.05.14 23:15, Andy Kittner (andy.kitt...@gmail.com) wrote: | May 15 22:06:47 pinky systemd[1]: Mounted Runtime Directory. | May 15 22:06:47 pinky systemd[1]: Mounted Lock Directory. This

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-15 Thread Andy Kittner
On 15/05/14 23:33, Kay Sievers wrote: On Thu, May 15, 2014 at 11:15 PM, Andy Kittner andy.kitt...@gmail.com wrote: What is Mounted Runtime Directory? Is that /run? That must be part of PID1's own early initialization, nothing to run externally. I thought so from the name, but aparently it is

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-14 Thread Lennart Poettering
On Tue, 13.05.14 20:01, Andy Kittner (andy.kitt...@gmail.com) wrote: | May 13 18:50:33 pinky systemd-udevd[2751]: conflicting device node '/dev/mapper/swap' found, link to '/dev/dm-1' will not be created Thats the first one I find a bit fishy, but it doesn't sound fatal either... This really

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-14 Thread Andy Kittner
On 14/05/14 18:33, Lennart Poettering wrote: On Tue, 13.05.14 20:01, Andy Kittner (andy.kitt...@gmail.com) wrote: | May 13 18:50:33 pinky systemd-udevd[2751]: conflicting device node '/dev/mapper/swap' found, link to '/dev/dm-1' will not be created Thats the first one I find a bit fishy, but

[systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-13 Thread Andy Kittner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi all, first I hope I'm asking at the right place here, if not feel free to kick me in the right direction. Now, for my problem: I have several encrypted partions set up via /etc/crypttab Since the update to systemd-212 (from 207 I think) the

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-13 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 13, 2014 at 08:01:21PM +0200, Andy Kittner wrote: | May 13 18:50:33 pinky systemd-udevd[2751]: conflicting device node '/dev/mapper/swap' found, link to '/dev/dm-1' will not be created Thats the first one I find a bit fishy, but it doesn't sound fatal either... When this happens,

Re: [systemd-devel] cryptsetup vs. swapon/fsck (some kind of race condition)

2014-05-13 Thread Andy Kittner
On 13/05/14 23:39, Zbigniew Jędrzejewski-Szmek wrote: On Tue, May 13, 2014 at 08:01:21PM +0200, Andy Kittner wrote: | May 13 18:50:33 pinky systemd-udevd[2751]: conflicting device node '/dev/mapper/swap' found, link to '/dev/dm-1' will not be created Thats the first one I find a bit fishy, but