[systemd-devel] [PATCH] udev: Adding zram to inappropriate block device

Lennart Poettering lennart at poettering.net
Tue Feb 4 03:48:09 PST 2014

On Sun, 02.02.14 15:27, Jóhann B. Guðmundsson (johannbg at gmail.com) wrote:

> >>udev seems to have a race condition with swapon to see which can open
> >>/dev/zram0 first, causing swapon to fail.
> >>( seems to be most noticeable on arm devices one out of every 7 times or
> >>something ) and this patches udev's persistent storage rules to avoid
> >>probing any zram devices.
> >
> >Thanks, this explains why the patch is needed. But this should
> >really be in the commit message :)
> >
> Regarding the future of zram support in systemd should that not be
> added to fstab-generator and swap, with unit type ending in .zswap?


Quite frankly, I don't really see what the point is of involving a fake
block device for this... I am happy to generically support stuff that
makes sense, but this really and totally doesn't. It's a completely
broken API.

I mean, I don't mind if people make use of this, but support for this
should live outside of systemd.


Lennart Poettering, Red Hat

More information about the systemd-devel mailing list