News for hackers. Stuff that matters.
Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @04:08PM (#27176599)
>that decision [...] was done for purely anti-competitive reasons.

This is not correct, I don't know where you got this idea. The systemd-udevd daemon still runs without systemd. The code has moved into the systemd repository, and it has a build dependency on libsystemd, but otherwise it has no runtime dependency; your distro should be able to package it separately if it wants.

Re:Systemd: The Good Parts by ohazi on Sunday May 16, 2021 @04:25PM (#27176725)
Can you point to a distro that does this vs. using eudev? I mean, you might be right, but I haven't found any, and I think the reason for this is that there are subtler inter-dependencies that require additional workarounds:

> > Also, AFAIR the connection between systemd and udev doesn't really go deeper than the fact that they're sharing the same upstream tarball. It is still possible to build and use udev without systemd

> But that's not really the case operationally, and it's why eudev was forked away from it for Gentoo.

https://lwn.net/Articles/778547/

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @04:34PM (#27176803)
The udevd package in gentoo does exactly this, which is supported as an alternative to eudev: https://packages.gentoo.org/packages/sys-fs/udev

I believe the reason for eudev is to avoid some of those other unwanted changes from upstream udev that broke udev scripts. Which to me is a fine technical justification, but not really related to another udev implementation having a build dependency on libsystemd. The udevd package seems maintained so I really don't understand what operational issues that comment is getting at.

Re:Systemd: The Good Parts by ohazi on Sunday May 16, 2021 @05:06PM (#27177012)
Interesting. I didn't realize this was a supported option, but the Gentoo wiki also seems to agree with you [1], so I may need to walk back some of my frustration around this.

I still have concerns that having a shared codebase makes it easier for interdependencies to materialize later, but if they've managed to keep it as decoupled as is claimed here, then I'm pleasantly surprised, and also annoyed that the communication around this issue has been confusing enough to lead me to an apparently incorrect conclusion.

[1] https://wiki.gentoo.org/wiki/Gentoo_Without_systemd#The_udev...

Re:Systemd: The Good Parts by Conan_Kudo on Sunday May 16, 2021 @05:45PM (#27177286)
Most of the systemd components actually work without systemd as the init. I've used udev and nspawn without systemd-init.

As long as you don't have a problem with libsystemd existing, most things work fine without systemd-init. Mainly systemd-journal and systemd-oomd both require systemd-init.

Re:Systemd: The Good Parts by asfodelsu on Monday May 17, 2021 @02:23AM (#27180558)
The people that makes distro without systemd have users that scan the filesystem and get crazy if they found the name systemd in the filesystem. I can say the same for the devs also. So we have hardcore-hate distros that "liberates" packages and the dependency of the unused library. Better give that time to make the distro better imho
Re:Systemd: The Good Parts by makomk on Sunday May 16, 2021 @06:04PM (#27177446)
In practice I think systemd-udevd probably still runs without systemd, but as I understand it that's not an officially supported solution and the systemd developers have said they reserve the right to make changes that break it at any time. (The main reason why they haven't yet is most likely that their attempts to integrate dbus into the kernel and systemd more tightly were rejected by the kernel devs; if I remember rightly that was expected to be the point at which you could not use it without systemd.)

Using the kernel interfaces that udev relies on without using udev itself is also unsupported and the developers consider it within their rights to break those as well.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @06:55PM (#27177906)
It has been supported for at least the last 9 years now, I don't see why they would have any reason to break it.

>The main reason why they haven't yet is most likely that their attempts to integrate dbus into the kernel and systemd more tightly were rejected by the kernel devs; if I remember rightly that was expected to be the point at which you could not use it without systemd.

That seems quite dubious, udev has never depended on dbus, and there really would be no reason for it to ever do that.

>Using the kernel interfaces that udev relies on without using udev itself is also unsupported and the developers consider it within their rights to break those as well.

This I know is true, the netlink stuff varies really wildly from driver to driver. The alternative would be to put udevd and the other userspace bits into the kernel, which I really doubt anyone wants to do.

Re:Systemd: The Good Parts by devenblake on Sunday May 16, 2021 @04:26PM (#27176736)
I have a feeling if this was as simple as you say, distro maintainers would be doing it.
Re:Systemd: The Good Parts by JoshTriplett on Sunday May 16, 2021 @05:32PM (#27177192)
They do. The few distributions that still support non-systemd init systems do split out udev: https://packages.debian.org/sid/udev
Re:Systemd: The Good Parts by cbmuser on Sunday May 16, 2021 @04:31PM (#27176776)
Which is not that uncommon, FWIW.

binutils and gdb were also moved into a common repository and gcc merged some repositories as well.

Re:Systemd: The Good Parts by Blikkentrekker on Sunday May 16, 2021 @07:20PM (#27178171)
IT's not my area of expertise, but the eudev page does speak of restoring some functionality that it lacks without systemd running alongside it, as well as removing glibc and GCC specific dependencies.

There is probably a reason why even many binary systems adopted eudev instead. — the maintainers often justify this with “problems” with udev but never go into much detail about what that is but the language does keep suggesting that it restored some functionality that is missing if it run sans systemd.

Re:Systemd: The Good Parts by bkor on Sunday May 16, 2021 @09:27PM (#27179122)
> but the language does keep suggesting that it restored some functionality that is missing if it run sans systemd.

People often misunderstand what libsystemd does. See the many reactions here, but also e.g. the response by Devuan around libsystemd.

Too often people assume things around systemd, or too heavily rely on incorrect information found via Google.

That things are being done this way by a few projects to me isn't enough. Nowadays people did not thoroughly investigate things before they take a decision. See e.g. the various responses in this thread.

Re:Systemd: The Good Parts by dralley on Sunday May 16, 2021 @04:25PM (#27176728)
>and it has a build dependency on libsystemd

That does seem kind of unfortunate for anyone that wants to bootstrap a systemd-less distibution.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @04:47PM (#27176888)
Libsystemd is just a shared library with some common code used by various systemd daemons (an epoll-based event loop, the dbus protocol implementation, uuid generation, parsers for the binary logs, etc). I can understand why people don't want to run systemd as pid1, but having some other external daemon depend on this library doesn't make it any harder to bootstrap that type of distribution.
Re:Systemd: The Good Parts by salawat on Sunday May 16, 2021 @05:02PM (#27176997)
Why take the risk of a maintainer saying fuckit and pulling in the rest of systemd since you're already using their utils?

It's just one of those things where it's better to stay away.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @05:08PM (#27177023)
That doesn't really make any sense, libsystemd is just a library with some fairly generic functionality.