News for hackers. Stuff that matters.
Re:Systemd: The Good Parts by ohazi on Sunday May 16, 2021 @03:52PM (#27176476)
I actually like using systemd. I took the time to learn how to use it, and as a desktop Linux user, it's honestly quite nice.

But the one thing that still really pisses me off about systemd-the-project was the fact that they ate udev-the-project. In my view, that decision was unnecessary and was done for purely anti-competitive reasons.

If you're not familiar, udev is basically the user-facing device manager for Linux. It's what allows you to easily configure rules and permissions for all the USB devices that you plug into your computer. These devices still need kernel drivers, but udev is how you tell your system "Please let user ohazi use this device, and also give it a convenient name like /dev/someDevice0"

By devouring the udev project, the systemd maintainers have guaranteed that dealing with USB devices on non-systemd systems was going to be a giant pain.

Then came the forks -- Gentoo maintains eudev, which is a systemd-free fork of udev. But really, this shouldn't be a fork. Udev should be independent and available on all systems. If systemd wants to do something special with devices, they should use udev APIs like everybody else. In my view, this is what finally allowed systemd to win the init war, despite all the protest. Ideological arguments about how best to start daemons is one thing, but you simply can't use a modern system without a sane approach to USB.

Edit: It seems that some of my concerns were overblown, e.g. you apparently can run udev without systemd as pid 1. Udev has a build-time dependency on systemd, but not a run-time dependency. The eudev fork removes that build-time dependency, and (maybe?) also papers over some other inconsistencies. I'm pleased that this is the case. I'm annoyed that the discourse around systemd/udev has been muddy enough to lead me to incorrect conclusions (and I'm aware that the original version of this comment likely added fuel to this particular fire). Oh well... live and learn.

Re:Systemd: The Good Parts by gregkh on Monday May 17, 2021 @05:04AM (#27181418)
The person who started udev (i.e. me), and the person who did the majority of the work on udev to make it into the proper solution for everyone (i.e. Kay Sievers), both agreed that it made more sense to move it into the systemd codebase in order for lots of duplicated code and functionality to be removed.

By doing this, we have made the maintenance and support for this core userspace tool much easier for everyone who was involved in working on it.

If the developers involved in a project do not do what you want with that project, feel free to fork the project as that's the beauty of open source! And hey, that's exactly what the eudev developers did, go use their fork if you want to, no one is forcing you to use the version from systemd, just like no one is forcing you to use any other open source program. It's your choice to do so or not :)

Re:Systemd: The Good Parts by totony on Monday May 17, 2021 @06:59AM (#27182102)
Why did you chose udev using libsystemd and not systemd using libudev (or made a different shared library, I'm not familiar with what happened)? Seems like this would have been a more widely accepted change and achieved the same thing.
Re:Systemd: The Good Parts by gregkh on Monday May 17, 2021 @07:59AM (#27182476)
I'm not understanding the question here at all, sorry, can you please rephrase it?

And if you have questions about how this happened, look at the source for when it was merged, it's all there for everyone to review :)

Also, udevd is a program, not a library.

Re:Systemd: The Good Parts by totony on Monday May 17, 2021 @03:14PM (#27187128)
As I understand there was some shared code between the two projects and udev was refactored into using systemd's code. Why not make systemd re-use udev code instead? Aka either expand udev's library or make a library out of the shared code that's used by both systemd and udev.

That way udev stays a separate project and you don't have to bring in a big library to use it. Systemd needs udev both ways so it changes nothing for it apart perhaps a bit of maintenance for a separate library for the shared code.

Re:Systemd: The Good Parts by zxzax on Tuesday May 18, 2021 @08:58AM (#27193947)
I don't want to put words in Greg's mouth, but if you check the code for udevd at this moment you can see a lot of use of utility headers that are not really appropriate for a libudev: https://github.com/systemd/systemd/blob/c54cfef3968613f9e86e...

Expanding udev's library would probably end up a decent size library of other functionality, I don't think there is any good way around needing this. This is not code that could be deleted from systemd if it was separated. The way eudev has handled it is by doing what you describe and copying those shared functions out from systemd: https://github.com/gentoo/eudev/tree/34b2037d379e33f1cf79a34...

The result of that being there are two copies of the same shared code floating around, which is what they were trying to avoid.

Re:Systemd: The Good Parts by totony on Tuesday May 18, 2021 @05:56PM (#27201792)
>but if you check the code for udevd at this moment you can see a lot of use of utility headers that are not really appropriate for a libudev:

That's fair.

>This is not code that could be deleted from systemd if it was separated.

Why not? You could make a library out of those utility functions and use it from both systemd and udev (without having to include most of libsystemd which doesn't seem useful for udev).

Re:Systemd: The Good Parts by zxzax on Friday May 21, 2021 @12:12AM (#27230418)
I don't have a quote handy, but systemd maintainers have previously said they are not interested in also maintaining a giant public API of utility functions, on top of everything else.
Re:Systemd: The Good Parts by mjw1007 on Sunday May 16, 2021 @04:50PM (#27176913)
What particularly grated was that they managed to introduce bugs into udev and then say they didn't have the "expertise or understanding" to fix them: https://github.com/systemd/systemd/issues/7157#issuecomment-...

(That bug was causing udev to give multiple disks the same name in /dev/disk/by-path, which I think is pretty much core udev functionality, given that udev was intended to supersede devfs.)

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @05:05PM (#27177007)
I'm just curious, how would you suggest they debug and maintain support for that hardware, without even owning that particular device? It seems like anything they do would just be a wild guess as to whether it actually works or not. In my experience with this specialized datacenter hardware, if people want any of this stuff fixed (in userspace or in the kernel) it usually falls on the hardware vendor to hire some developers to fix it and upstream it, or at the very least donate some hardware to the upstream project so they can test properly.
Re:Systemd: The Good Parts by mjw1007 on Sunday May 16, 2021 @05:19PM (#27177093)
If they felt they needed information from, say, the Linux scsi maintainers then they could have gone out and asked for it. If they thought that in order for udev to do a proper job with these devices they needed the sg3-utils maintainers to write something new, they could have gone and asked for that. As it was they just stuck a "needs-new-home" label on the bug and ignored it.

I think useful action would have been more likely if udev had still been maintained by a team who believed they'd taken on the responsibility to make /dev/disk/by-path work, rather than maintained as a small part of a project whose maintainers are mostly interested in other things.

(Also, IIRC from what I had to do to work around it, they could have fixed that bug by reverting the change that introduced it. It wasn't a case of existing udev code not working with new hardware; it was caused by someone making changes without understanding the consequences.)

Re:Systemd: The Good Parts by _d7dt on Sunday May 16, 2021 @05:29PM (#27177166)
That's what I mean though, all of that seems to be just wild guessing as to what will actually work and sending random emails out to random people who may or may not be able to fix it (Disclaimer: I don't know anything about this specific bug or the specific hardware). Wouldn't someone who actually owns the device and knows who to contact on the kernel side be a better person to lead the effort on that?
Re:Systemd: The Good Parts by mjw1007 on Sunday May 16, 2021 @05:39PM (#27177235)
This was a bug in udev.

The right people to lead the effort on fixing bugs in udev are the udev maintainers.

If people did not wish to have the responsibility for leading the effort to fix bugs in udev, they had the option of not taking over the maintenance of udev.

I agree with ohazi, above, that the world would be a better place if the systemd people had availed themselves of that option.

(To be fair, it looks like this issue was fixed a few months later by someone who knew what they were doing. So the main lesson here may be something more like "@poettering should not be triaging udev bugs".)

Re:Systemd: The Good Parts by _d7dt on Sunday May 16, 2021 @05:44PM (#27177280)
I see people saying this kind of thing often in open source and I think you are missing the point here: who is going to fix this bug? You can say systemd developers shouldn't triage it, and then you're left with nobody to triage the bug at all. So what will you do? The point is, they don't own the hardware, they can't fix the bug. You have to find somebody who actually does own the hardware who knows what is going on, which seems to be exactly what happened. But if you get unlucky and if zero of those people are contributing to udev or any of its forks, then the bug probably won't ever get fixed.
Re:Systemd: The Good Parts by mjw1007 on Sunday May 16, 2021 @06:08PM (#27177491)
For what it's worth, I didn't mean that the systemd people shouldn't triage the bug.

I meant that I suspect @poettering was mistaken when he said the current maintainers didn't collectively have "the expertise and understanding to maintain this properly."

As far as I can make out, there was nothing particularly hardware-specific about the bug. The bug was that udev was assuming that there could be no more than one disk per SATA host node, which turns out not to be the case.

`udevadm info` output would have been enough to see what was going on, which I'm sure the reporter would have happily supplied.

Re:Systemd: The Good Parts by _d7dt on Sunday May 16, 2021 @06:17PM (#27177545)
From what you were saying earlier, from the perspective of the bug triager, it sounds like there were multiple areas that maybe this could have been fixed in, not necessarily udev. So still that comes back to: the correct people to triage that bug really would have been the distro maintainers, who have total visibility over the whole system and who are better equipped to pinpoint where the bug should be fixed. And then from there they can pass it off to a systemd person or an OEM person, or both, or whatever (Again disclaimer, I don't know anything about this particular SATA hardware or whether this is normal behavior for a host node, this is just my experience from trying to triage this type of bug).
Re:Systemd: The Good Parts by 3np on Sunday May 16, 2021 @06:06PM (#27177477)
I think their point is: with smaller project scope, this bug wouldn’t have existed in the first place.
Re:Systemd: The Good Parts by _d7dt on Sunday May 16, 2021 @06:19PM (#27177556)
That is throwing the baby out with the bathwater though, people who want large scale projects will continue to make projects with large scopes.
Re:Systemd: The Good Parts by regularfry on Sunday May 16, 2021 @07:29PM (#27178242)
And they will continue to be bitten by problems specific to large-scope projects. Wanting something, no matter how much, does not let them escape engineering reality.
Re:Systemd: The Good Parts by _d7dt on Sunday May 16, 2021 @07:42PM (#27178357)
I think they are aware of what they signed up for. Linux has continued to grow year after year, the reality for them is that they can afford it.
Re:Systemd: The Good Parts by regularfry on Sunday May 16, 2021 @07:52PM (#27178441)
Apparently not. If they had not signed up for it, in this case they would not have ended up triaging a bug they did not have the skills or hardware to tackle.
Re:Systemd: The Good Parts by _d7dt on Sunday May 16, 2021 @07:55PM (#27178462)
Just to be clear: the alternative there is that nobody looks at the bug at all because nobody but the bug reporter has the hardware. I don't think that's what you want, I assume you would just prefer the bug to be fixed.
Re:Systemd: The Good Parts by regularfry on Monday May 17, 2021 @03:15AM (#27180808)
No, the alternative is that, with no clear owner of the bug, the ownership problem gets dealt with early, rather than having the bug go stale in a can't-fix-won't-fix state for months because the wrong people claimed ownership of the subsystem.
Re:Systemd: The Good Parts by _d7dt on Monday May 17, 2021 @09:18AM (#27183050)
>the wrong people claimed ownership of the subsystem

That's... not what's happening at all? The issue is there _wasn't_ any of the right people around to claim ownership of the bug. It's not like someone in the know can't just look at the systemd bug tracker, it's all public. Like, I get what your complaint is, but at the end of the day, do you really care who's name is on the commit that fixes the bug? I usually don't, and most maintainers I know probably don't either -- they're usually happy to delegate to someone who's more knowledgeable in the problem area. If you have some other solution you'd like to suggest here then I'd love to hear it, let's move beyond the criticism and start thinking about solutions. And I don't even mean this as a solution in systemd, I mean this as a "helps anything that interacts with hardware and has bugs that could potentially be caused by hardware" solution.

Re:Systemd: The Good Parts by unanswered on Sunday May 16, 2021 @06:08PM (#27177488)
This wasn't a hardware bug and it didn't materialize only when some particular hardware was plugged in. Were they just supposed to open a phone book, pick a random hard drive manufacturer, and say "hey this is your problem now"?
Re:Systemd: The Good Parts by _d7dt on Sunday May 16, 2021 @06:21PM (#27177570)
No, it seems the specific hardware causing the issue was mentioned in the bug report.
Re:Systemd: The Good Parts by calvinmorrison on Sunday May 16, 2021 @10:14PM (#27179411)
systems/udev was spearheaded by employees getting paid to write it, not enthusiastic gnuers doing it for love.
Re:Systemd: The Good Parts by setheron on Sunday May 16, 2021 @10:41PM (#27179580)
My biggest gripe is that the logs are in a binary format.
Re:Systemd: The Good Parts by silly-silly on Monday May 17, 2021 @02:28AM (#27180581)
You use a tool like cat, vim , emacs, or tail to see logs. You can't physically read the file off the disk, how is this different than using journalctl ?

# journalctl -u ssh

Re:Systemd: The Good Parts by rnhmjoj on Monday May 17, 2021 @03:02AM (#27180738)
I think the issue is not that it's binary, but that it's a custom half-assed format. It's actually pretty slow because there is not enough indexing, this is why `systemctl status` can takes seconds to show the last 10 log lines[1]. Even worse, systemd can detect corruption but can't repair the logs[2], in practice a power failure can mean months of logs thrown away. Thankfully it can skip over corruption, so logging continues to work.

I would have no problem if systemd used a database like sqlite, lmdb or anything else with some valid tooling, indexing, caching and proper recovery solutions.

[1]: https://github.com/systemd/systemd/issues/2460

[2]: https://unix.stackexchange.com/questions/86206

Re:Systemd: The Good Parts by zxzax on Monday May 17, 2021 @10:53AM (#27184130)
I looked into this a while ago -- a traditional transactional CRUD database is totally unnecessary here, these are not files that you want to be editable by random tools. The journald log files have the important property that they are append-only by a single-writer. I agree there are some outstanding issues but those issues should just be fixed, instead of throwing it all out and moving to an even more complicated database layer that brings with it all its own additional problems. I think it would be perfectly feasible for someone to improve the indexing to show the latest 10 lines, or to write a fsck-type tool to repair damaged logs.
Re:Systemd: The Good Parts by throw0101a on Tuesday May 18, 2021 @08:37AM (#27193762)
> instead of throwing it all out and moving to an even more complicated database layer that brings with it all its own additional problems.

Would SQLite be any more complicated than what they have now? Or OpenLDAP's Lightning Memory-Mapped Database (LMDB)? OpenLDAP/Symas' Howard Chu on the latter:

* https://www.linkedin.com/pulse/20140924071300-170035-why-you...

Re:Systemd: The Good Parts by lmm on Monday May 17, 2021 @03:08AM (#27180776)
Conventional logs are files, the fundamental unifying abstraction of Unix, and so you can read them with any tool, even a tool that was written before your logging system and that your logging system's author didn't know about. Having to take them just as piped input is a much more limited interface that doesn't allow you to do all the things you can do with a real file.
Re:Systemd: The Good Parts by Chris2048 on Monday May 17, 2021 @04:41AM (#27181279)
> so you can read them with any tool

what tool can't you read them with? Why is the fs the fundamental unifying abstraction, as opposed to pipes?

> doesn't allow you to do all the things you can do with a real file

like what?

Re:Systemd: The Good Parts by lmm on Monday May 17, 2021 @08:13AM (#27182562)
You can't do random access through a pipe, so you can't binary search for it, or if you have some kind of probabilistic skip-sampling tool that won't work. Pipes don't have names, so anything that expects to work with them won't work. You can't re-read the same file. I don't know all the things you might want to do, but that's kind of my point - most things work with and expect files, and so if you want to be able to count on being able to use other unknown tools, a file is what you need.
Re:Systemd: The Good Parts by regularfry on Monday May 17, 2021 @05:07AM (#27181434)
Pipes are files. From the point of view of the consuming process, you're just reading from a file descriptor. Files are more fundamental than pipes.
Re:Systemd: The Good Parts by Chris2048 on Monday May 17, 2021 @05:29AM (#27181550)
If lmm shared this opinion, then there should be no problem, as systemd logs can be piped.
Re:Systemd: The Good Parts by regularfry on Monday May 17, 2021 @05:35AM (#27181578)
All pipes are files. Not all files are pipes.
Re:Systemd: The Good Parts by Chris2048 on Monday May 17, 2021 @05:41AM (#27181603)
So, back to the original question: what's the problem here? what is disallowed?

Also: If all pipes are files, but not all files are pipes, it would seems to me that files are more restrictive. That, and the extra steps you need to take to avoid needless IO.

Re:Systemd: The Good Parts by regularfry on Monday May 17, 2021 @08:06AM (#27182524)
I recommend https://www.amazon.co.uk/dp/013937681X/ref=cm_sw_r_cp_apa_gl... as an introduction to the fundamental concepts of the Unix filesystem. Certainly a better education than I could give here.
Re:Systemd: The Good Parts by Chris2048 on Monday May 17, 2021 @08:12AM (#27182553)
The original post was:

  that doesn't allow you to do all the things you can do with a real file
I'm not interested in what the differences between a pipe and a file are (I know) - I'm interested in why OP thinks they are relevant in this specific context/case; particularly in context of my statement:

  seems to me that files are more restrictive
Is, for example, a sticky bit relevant to systemd log files?
Re:Systemd: The Good Parts by kaba0 on Monday May 17, 2021 @03:16AM (#27180810)
But allows you to do things like properly filter based on multiple properties, and you can still use it to output text logs as well.
Re:Systemd: The Good Parts by lmm on Monday May 17, 2021 @04:11AM (#27181086)
There are plenty of unix tools for filtering files based on all manner of things. That's the unix way of doing things, and for many users the ability to mix and match unrelated tools is where a lot of the value of linux-like systems comes from.
Re:Systemd: The Good Parts by kaba0 on Monday May 17, 2021 @04:28AM (#27181207)
I don’t find grepping text logs for a service file name with many false positives better in any way than just filtering on an actual column of a quasi-db.

Also, you can pipe the output of journalctl to do whatever you want with it with those unix tools.

Re:Systemd: The Good Parts by deathcakes on Monday May 17, 2021 @04:24AM (#27181183)
Which I recall being touted as one of the major advantages of systemd - specifically that binary log files would make for much easier log aggregation as it would be more efficient to send over the wire. Fast forward to today and the best way of shipping logs is to force journald to output to, uh, text, then wring it through, yes thats right, syslog, to then be sent to a central server...
Re:Systemd: The Good Parts by TeMPOraL on Monday May 17, 2021 @05:35AM (#27181579)
At the risk of uttering a "you're holding it wrong" defense, it feels to me the issue isn't with logging format, but the stubbornness of *nix admins used to working with text. For better or worse, software moves in the direction of things large amounts of developers like the most, whether it makes sense or not.
Re:Systemd: The Good Parts by raffraffraff on Monday May 17, 2021 @02:27PM (#27186479)
Amarok 2 moved in the direction that the developers wanted, but the users hated it. Proves your point though!
Re:Systemd: The Good Parts by 867-5309 on Sunday May 16, 2021 @05:01PM (#27176985)
the systemd stars-to-issues ratio is worrying to say the least
Re:Systemd: The Good Parts by TheDong on Sunday May 16, 2021 @05:36PM (#27177221)
What do you imagine that ratio shows? Different projects use issues differently, so that number isn't super comparable...

And I've also noticed that low-level systems projects generally attract relatively few stars (i.e. a javascript library or go library will have more stars than a well used c library or systemd). My theory on that is that the people involved in projects like systemd, gnu, etc, see github as mostly just a git repository host, and don't bother with stars etc.

I guess from my perspective, I put zero weight into the stars on a project, and issue count only matters in the context of how the project deals with issues. What do you see as "worrying" in there? Do you see more value in those numbers than me?

Re:Systemd: The Good Parts by TeMPOraL on Monday May 17, 2021 @05:43AM (#27181611)
Github stars are just bookmarks. They're not an expression that someone loves the project, or are using it, or even very interested in it - they're just a way to bookmark something that piqued your interest, so that you can find it later.

This tells you why "low-level systems projects" attract less stars. It's because well-known, long-lasting projects attract less stars. There's a little point of starring a repo of a project that you recognize and use. You remember its name already. Meanwhile, a random JS library that looks like it could come in handy in the future? These things come and go, and you'll forget its name 5 minutes from now anyway, so you star it.

Re:Systemd: The Good Parts by saagarjha on Monday May 24, 2021 @08:22AM (#27263511)
Well, to you. I use GitHub stars as a way to mark projects that I use or particularly appreciate.
Re:Systemd: The Good Parts by 867-5309 on Sunday May 16, 2021 @10:40PM (#27179574)
I think it generally shows how active, responsive and sufficiently staffed the maintainers are. should projects be on github if the issues aren't used as intended? the worry comes from the number of systems in production relying on systemd
Re:Systemd: The Good Parts by TheDong on Monday May 17, 2021 @12:27AM (#27180045)
> should projects be on github if the issues aren't used as intended?

What do you mean by "not used as intended"? systemd has a mailing list too, but they also respond to github issues. Does having multiple different forms of interaction with your community mean you're not using issues as intended?

Some projects use github issues as a sorta backlog, or in conjunction with milestones and github projects to track future work. Some don't. Are projects that don't do that not using issues as intended?

As far as I know, github gives no general guidance on how to use github issues, and it's up to each project to setup issue templates and/or contributing.md files to explain that project's expectations.

> generally shows how active, responsive and sufficiently staffed the maintainers are

Okay, so if a project has a bunch of maintainers and is so well staffed they close all issues immediately, that means they have 0 issues, so that's good, right?

Except many well-maintained projects on github have hundreds to thousands of open issues, like nodejs with >1k, rust-lang with 7k, etc.

From where I sit, how well-maintained a project is has almost nothing to do with how many issues it has. Issues are a function of number of users (which is much different from level of maintenance), and maintainer policy on whether they close issues without enough information, close stale issues automatically, use issues to track backlog work, etc.

Re:Systemd: The Good Parts by detaro on Monday May 17, 2021 @12:38AM (#27180085)
So in your metric, all those projects that use a bot to close issues after 30 days as "stale" are using Github better?
Re:Systemd: The Good Parts by 867-5309 on Monday May 17, 2021 @11:48PM (#27191078)
it's not a metric, just an indicator
Re:Systemd: The Good Parts by kaba0 on Monday May 17, 2021 @03:20AM (#27180829)
There is for example nixpkgs, which uses issues very differently to a conventional repo, and you can’t really argue whether the project is over/under stuffed based on that, since it packages almost everything. Some of the issues may be upstream bugs, etc.
Re:Systemd: The Good Parts by pseudalopex on Sunday May 16, 2021 @11:02PM (#27179679)
More stars wouldn't decrease the number of issues though.
Re:Systemd: The Good Parts by beermonster on Monday May 17, 2021 @02:43AM (#27180649)
The criteria for a person to star a repo likely varies person to person. Therefore I’m not sure it’s a useful metric of anything in particular? Some crude popularity metric maybe? I don’t star repos myself. Feels more like a social networking feature.
Re:Systemd: The Good Parts by 867-5309 on Sunday May 16, 2021 @11:07PM (#27179697)
it would decrease the ratio
Re:Systemd: The Good Parts by pseudalopex on Monday May 17, 2021 @01:12AM (#27180257)
The number of issues has some relevance. The number of stars doesn't.
Re:Systemd: The Good Parts by 867-5309 on Monday May 17, 2021 @11:48PM (#27191080)
not following
Re:Systemd: The Good Parts by pseudalopex on Tuesday May 18, 2021 @02:16PM (#27198792)
You can't compare the number of stars for different kinds of software.

A large number of open issues means the maintainers can't keep up. 10x more issues mean the problem is worse even if the project has 20x more stars.

Re:Systemd: The Good Parts by TheDong on Tuesday May 18, 2021 @08:54PM (#27203315)
For what it's worth, I also don't think comparing issues between different projects works.

If you have project A, run by a company, which uses an internal Jira instance to track backlogs and developer's selected tasks, but uses github issues to track all user's reported bugs, well, that will have fewer issues than project B, which uses github issues to track backlogs and sprints in addition to bugs.

There's a lot of variability in this. The kubernetes project (~2k issues) has a bot that closes issues after 90 days by default (~9k closed by the bot so far), and without that bot, they'd have way more.

> A large number of open issues means the maintainers can't keep up.

That's not necessarily true. Github doesn't prescribe that every issue is immediately actionable. Perhaps the issue was tagged as "feature-request / help-wanted". Perhaps it is marked as "awaiting additional reporter info" (like logs, or OS), and there's nothing the maintainers can do until the reporter gets them more info.

Whether every issue gets triaged tells you something about whether maintainers are keeping up, but issues that are triaged aren't then always closed, so the number of open issues doesn't tell you much about how many issues are triaged and how quickly.

Re:Systemd: The Good Parts by Iolaum on Sunday May 16, 2021 @05:23PM (#27177124)
lolz - i 'll be keeping an eye on that from now on :) (on some of my fav projects)
Re:Systemd: The Good Parts by TacticalCoder on Sunday May 16, 2021 @04:37PM (#27176821)
> By devouring the udev project...

That's the main issue (not udev specifically but the overall philosophy of trying to make systemd mandatory for as many things as possible).

Any distro adopting systemd is basically forever giving up any hope of moving away from systemd in the future.

I'm still on Debian (Debian user since "Buzz") but I already tried Devuan (Debian fork without systemd) once and may switch to it at some point.

I simply don't like the overall mindset of those pushing systemd.

Re:Systemd: The Good Parts by jamal-kumar on Sunday May 16, 2021 @04:56PM (#27176954)
I had a hard time trying Devuan because all the package mirrors are really far away from me unfortunately, but I don't have any issues at all just removing it from whenever I am working with debian servers. It all used to work through some shell script called systemd-shim, I'm not entirely sure now though, maybe someone else has an idea off hand

https://sysdfree.wordpress.com/2020/07/02/319/

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.
Re:Systemd: The Good Parts by nine_k on Sunday May 16, 2021 @05:51PM (#27177345)
I cannot shake off the feeling that the core developers standing behind systemd, pulseaudio, Gnome desktop spend a lot of time using macOS, and like it better than Linux.

This would explain why they imitate or copy many of its features (and misfeatures), and seemingly tend to replace the Unix ways with entirely different approaches. Effectively forcing things on users, as it was with pulseaudio and systemd, is also a very macOS thing to do.

I'm not opposed to replacing Unix with different approaches, as long as they keep playing on its key strengths, and do not remove modularity and composability. That is, Plan 9 is fine with me. Much of what Red Hat does, sadly, no.

Re:Systemd: The Good Parts by wearywanderer on Sunday May 16, 2021 @09:27PM (#27179124)
> [Gnome developers imitating/coping MacOS features]

I've heard this a lot, but having used Gnome briefly and MacOS fairly extensively, I just don't see it. Also, have you seen KDE's Dolphin? If ever there was a Finder clone, it's Dolphin. With regards to copying MacOS, Dolphin devs have wiped the floor clean with Gnome.

Besides Dolphin specifically, KDE in general is flexible enough that making it look and feel like MacOS is pretty easy. Gnome though? It's not particularly MacOS-y by default, and Gnome devs have naked contempt for customization, so good luck if you want to try anyway.

However, I share your suspicion that most Gnome developers do not actually use Gnome as their daily driver.

Re:Systemd: The Good Parts by nine_k on Sunday May 16, 2021 @11:11PM (#27179730)
Yes, that naked contempt to customization is what I find more macOS-y than any exact copy of the visuals. KDE in this regard is pretty safe: you can bend and shape it to taste pretty thoroughly.

Interestingly, classic MacOS, at the times of 6.5 or 7, was somehow more customizable, and seemed to have more power-user features. Just like, well, Gnome back in the day %)

So, my daily driver is Xfce.

Re:Systemd: The Good Parts by distances on Monday May 17, 2021 @09:59AM (#27183470)
Interesting that you found Dolphin to be a Finder clone. It may well be, I just didn't see it besides some superficial UI similarities.

I think Dolphin is one of the very best Linux apps out there while I found Finder to be very clunky, often so unintuitive and useless that I resorted to command line instead. To be honest, it would probably have been fine if I took the time to learn the Mac idiosyncrasies like missing cut/paste, but Finder was one of my main gripes when I had to use Mac for work.

Re:Systemd: The Good Parts by wearywanderer on Monday May 17, 2021 @01:41PM (#27186011)
To be frank I find both Finder and Dolphin to be generally unsatisfactory. Finder is worse though, it's riddled with bugs and weird shit. I could never get Finder to show preview thumbnails of symlinks pointed to files on network mounts (while the Dock's folder view could always thumbnail those same symlinks just fine.) Or, when you mount a network drive, Finder can take dozens of seconds to recognize the mount has succeeded, while in a terminal next to finder you can clearly see it succeeded instantly. In Finder, thumbnailing sometimes breaks and completely stops working, with no indication of why. `qlmanage -r` usually fixes it, but what is the point of using macos if I have to waste my time fixing janky shit in a terminal? It's worse than the modern linux desktop experience.

Dolphin just has weird omissions; for instance try to sort a directory of symlinks by the time those symlinks were created. As far as I can tell, you can't do this because Dolphin follows the links and sorts by the dates of targets (contrast with `ls -ltr` and Finder, which sort by the dates of the links.)

Re:Systemd: The Good Parts by nvarsj on Monday May 17, 2021 @04:50AM (#27181342)
Gnome is one of the most customizable DEs around. You can customize almost every aspect of it via the extension mechanism. I'm even running a full tiling WM right now that is coded as a Gnome extension (PaperWM).
Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @11:33PM (#27179829)
The customization in the desktop of GNOME itself is still there, but it has mostly moved to shell extensions. If you're willing to deal with that, you can change quite a bit of functionality.

The apps are a different story, those tend not to go for a lot of customization and will usually just focus on optimizing for one or two use cases. If you have other use cases, the suggestion there would probably be to make a separate app.

Re:Systemd: The Good Parts by XorNot on Monday May 17, 2021 @01:19AM (#27180287)
GNOME would be fine and was fine up until the attempt at tablet integration happened, and it's been total chaos since then.

The problem is they hopped aboard the same bandwagon Microsoft did with Windows 8, where every started throwing tablet/touch style UI onto desktop interfaces.

For the life of me, I don't understand why there wasn't a happy middle ground of "or we'll render the main menu as a regular menu bar".

But at this point it's not a GNOME criticism so much as an entire UI/UX industry criticism.

Re:Systemd: The Good Parts by zxzax on Monday May 17, 2021 @09:27AM (#27183121)
This is a common thing I hear but it's not true. The hamburger menus were done to save space and reduce clutter, not out of any desire to be a tablet app. I sympathize with your criticism but it wasn't done for that purpose, it's just a coincidence. Also I should note, there are many non-tablet laptops that happen to have touch screens. These are not exactly rare these days, and AFAIK that was also a hardware segment that Microsoft was targeting, not just tablets. They weren't just making touch interfaces to sell the odd Surface or two. Sadly I don't know of any more elegant solution to this than what they're already doing, apps that want to work well here always have to straddle an awkward line where they have to support both traditional mouse and keyboard operation, as well as touch screens, at the same time. It's not an easy thing to design apps for.

To actually make good native touch/tablet apps in GNOME, you need to use a separate library called libhandy (renamed libadwaita for GTK4), and the app needs to be designed in a different way. You can usually tell the difference with an app made specifically for touch screens because it will totally de-emphasize the keyboard and mouse. I see more and more of these type of apps but only in the last couple of years, and it's mostly not to target tablets but to target the new open source phones e.g. Librem, Pinephone, etc.

Re:Systemd: The Good Parts by wearywanderer on Monday May 17, 2021 @01:48PM (#27186094)
>The hamburger menus were done to save space and reduce clutter, not out of any desire to be a tablet app.

"Save space"? That's a laugh. Reducing clutter is ill defined and probably subjective, but saving space? Saving it for what? The default window decorations, widgets, etc are bloated, not slim and compact (as they would be, if they were saving space.) Everything has huge margins, big buttons, and empty voids. "Saving space" is not a principle Gnome cares about.

Do you know what huge margins and big buttons are actually good for? Touchscreen interfaces designed for fat fingering. That's what Gnome cares about.

Re:Systemd: The Good Parts by zxzax on Monday May 17, 2021 @03:38PM (#27187443)
Again, what you are saying is not correct. You may be comparing their designs to other apps developed for other desktops using other toolkits, but that's not what is influencing GNOME. The space is saved compared to previous designs that were used by GNOME. Please consider comparing an old style GTK app with a new style GTK app:

Inkscape, old style: https://media.inkscape.org/media/resources/file/inkscape-0.4...

GNOME builder, new style: https://gitlab.gnome.org/GNOME/gnome-builder/raw/master/doc/...

The old style has four bars at the top (titlebar, menubar, toolbar, secondary toolbar). The new style merges them all into one bar and moves the menus into the hamburger menu. The margins may be bigger in the new style but ultimately, space is saved and the UI chrome is reduced. Also, GNOME Builder is not an application designed totally around touch screens -- it's a text editor, for typing into.

I sympathize if you don't like this style of app (and I encourage you to use different apps if you were used to having a lot of menus and toolbars, and you don't like the new style of GNOME apps), but what you are saying about the design goals and motivations does not match what the developers are actually doing.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @06:07PM (#27177485)
If plan 9 is what you want, I would encourage you to use 9front. I can't see why you would use Linux if you didn't like Red Hat, they have been a key contributor in Linux land for a long time, employing many long-time kernel developers.
Re:Systemd: The Good Parts by nine_k on Sunday May 16, 2021 @07:04PM (#27178004)
I'm not sure if 9front can be a daily driver yet; say, it does not seem to be able to run Emacs. Would be nice though.

Not that I don't like Red Hat. They are the poster child of a successful open-source company, and did and keep doing a ton of great things. I only don't like certain directions of development of certain userspace things which happen to be done under their corporate umbrella. These things, systemd in particular, were quite noticeable on the Linux landscape as of recently, both in the tiny desktop niche, and the huge server sector. Nobody's perfect, you know.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @11:38PM (#27179849)
I have to say, that seems like a strange requirement: I have never really considered Emacs (or Lisp) to be particularly Unix-like at all! I think the plan 9 people would probably tell you to ditch Emacs and use acme (Me personally, I say use whatever you want).
Re:Systemd: The Good Parts by nine_k on Monday May 17, 2021 @03:06AM (#27180764)
Emacs inside is very unixy, under a particular angle. Everything is a list, a ton of small composable functions doing one thing well, one common language that unifies all key interfaces, and the general lack of a predefined final construction, but rather a bucket of Lego blocks around a kernel which does the heavy lifting.

Acme us interesting, but pretty different; its automation is apparently written in the shell language using normal OS commands. AFAICT the Plan 9 shell lacks structured data types comparable to Lisp's: it has lists, but not nested lists, so such constructs are a bit less robust. Also, AFAICT, Acme actively wants mouse operations; I hope reasonable keyboard equivalents exist.

I'll explore more of it in my copious free time (sigh).

Re:Systemd: The Good Parts by zxzax on Monday May 17, 2021 @09:59AM (#27183476)
Having a lot of small composable functions and a lot of singly linked lists describes most functional programming languages though. I think that's only one part of the traditional Unix design. Though to me it was always seemed like the inspiration goes the opposite way -- it seems like Unix was in some ways designed as a "Lisp-like," where the shell works as a somewhat restricted version of functional programming that only operates on one data type.
Re:Systemd: The Good Parts by gsich on Sunday May 16, 2021 @07:30PM (#27178247)
I don't blame them. Linux desktop is still a mess.

systemd is great though.

Re:Systemd: The Good Parts by iso1210 on Monday May 17, 2021 @03:01AM (#27180733)
If you like (the mess) that is OSX, use OSX.
Re:Systemd: The Good Parts by gsich on Monday May 17, 2021 @04:34AM (#27181240)
No.
Re:Systemd: The Good Parts by unilynx on Sunday May 16, 2021 @04:02PM (#27176548)
Wasn't it because Kay Sievers was a major developer on both udev and systemd?

I can image someone thinking then "I'm implementing everything twice, both for udev and systemd. I'll just merge them"

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @04:15PM (#27176654)
According to Lennart that's correct, the reason it was done was to reduce the amount of duplicate code: https://lwn.net/Articles/490441/
Re:Systemd: The Good Parts by ohazi on Sunday May 16, 2021 @04:49PM (#27176907)
I realize that I don't really have any right to complain about this. I don't contribute to either project, and I think that maintainers should feel free to do whatever they think is best for their projects, including things that help reduce burdensome things that they find annoying.

However, as a heavy user of both projects, I see what those decisions have led to in practice, and have opinions about what this might mean for the community in the medium/long term. The reality on the ground today is that you either run systemd+udev, or you run OpenRC/something else + eudev. And having observed other projects that went down the "we forked, but merge regularly to try and keep the forks in sync" rabbit hole (e.g. ffmpeg and libav), this almost always ends badly.

The goal may be to keep the two separate projects compatible, but inevitably environment differences, bugs, refactors, etc. cause the two projects to diverge. This sucks for everybody, but it sucks a lot more for people using the less popular fork, and this can eventually kill the fork. I worry about eudev long-term.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @05:37PM (#27177223)
So that really seems to be the core of the problem to me: nobody really wants to seriously maintain udev as an individual project. It's not a fun or glamorous project to work on, it's boring, nobody will notice it unless it breaks, and nobody really seems to care that it depends on libsystemd. For most people this is just an implementation detail. For an embedded distro I can't see why you would use udevd or eudev, you probably want a much simpler device manager without the giant hwdb.
Re:Systemd: The Good Parts by throw0101a on Tuesday May 18, 2021 @08:43AM (#27193817)
> I realize that I don't really have any right to complain about this. I don't contribute to either project

This is a strange mindset. Do Star Wars fans not have a right to complain about bad movies just because they weren't part of the cast or crew?

Re:Systemd: The Good Parts by cyberdelica on Sunday May 16, 2021 @04:21PM (#27176691)
That's what code libraries were intended for.
Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @04:30PM (#27176770)
Not sure why you're saying that -- moving it to a library is basically what happened. The libudev code got moved to libsystemd, and now libudev is a wrapper around that.
Re:Systemd: The Good Parts by cyberdelica on Sunday May 16, 2021 @04:37PM (#27176818)
> Not sure why you're saying that -- moving it to a library is basically what happened. The libudev code got moved to libsystemd, and now libudev is a wrapper around that.

Oh, so now one has to include "libsystemd" if one wants to use "udev" - is that what you're writing? Hence the original comment:

> By devouring the udev project, the systemd maintainers have guaranteed that dealing with USB devices on non-systemd systems was going to be a giant pain.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @04:42PM (#27176852)
I don't understand, is this not what you were asking for initially? libsystemd.so is just a shared library, it's not any more of a giant pain than any other library.
Re:Systemd: The Good Parts by cyberdelica on Sunday May 16, 2021 @04:43PM (#27176861)
Why not just include libudev, in systemd instead?
Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @04:53PM (#27176929)
Because that would not reduce code duplication. I don't know if you have ever worked on any of the low-level Linux libraries written in C, but the amount of unnecessary code duplication across them is awful. The standard library features provided by glibc are extremely inadequate for modern applications, every non-trivial C project I've seen starts to include their own private implementations of various C++ things like hashmaps, binary trees, dynamically sized strings, unicode support, async event loops, etc.

For utilities that have to interact with low level kernel APIs it's even worse, every library seems to have to reimplement their own parsing of various other random things like netlink, or in the various pseudo filesystems like sysfs, procfs, cgroupfs, etc etc, the situation is really way out of hand. I don't know how to solve this in a reasonable manner beyond what systemd is already doing. Yes people will complain that they have a systemd dependency now but what else can you do? This is the exact reason the BSDs update the kernel, libc, init and core utils in tandem and consider a lot of the kernel API to be private, Linux was just slow to catch on in that regard.

Re:Systemd: The Good Parts by cyberdelica on Sunday May 16, 2021 @05:11PM (#27177042)
> Because that would not reduce code duplication.

I don't want to call you out for making a disingenuous argument, but it was either subsumed by systemd for code duplication reasons, or it wasn't?!

Duplicate code, could be refactored out to a shared library, that could then be incorporated in both udev, and systemd. That would mean, anyone looking to incorporate udev into a system, could do so without depending on libsystemd.

Instead, it would seem udev code, has been subsumed by libsystemd (in your own words) - which would appear to the sceptical eye, as a power play on the part of red hat - to force other distributions into using libsystemd, which would logically end with them also using systemd itself.

> I don't know if you have ever worked on any of the low-level Linux libraries written in C [...]

Yes, I have.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @05:22PM (#27177122)
The issue is not with the actual udev device event logic itself, but with all the other bits I talked about. Those are the things that would need to be duplicated.

>to force other distributions into using libsystemd, which would logically end with them also using systemd itself.

As I said elsewhere, libsystemd is just a library with some generic functions provided for convenience. This is like saying that installing python libraries on your system logically means that the PSF is trying to take over your system and forcibly rewrite everything in python, it doesn't make any sense.

Re:Systemd: The Good Parts by ticviking on Sunday May 16, 2021 @08:10PM (#27178576)
Why can't there be a libredhat that provide these things to the community with a stable interface?

Lots of communities manage to have widely used data-structure and algorithm libraries that aren't closely in the same repo as other unrelated projects, is there some special problem with this kind of systems programming that prevents that?

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @08:48PM (#27178822)
Does it really make a difference whether it's called libsystemd or something else? If you're talking about the other functionality that's private and unstable, it's not included in a separate library for exactly that reason: it's considered private and unstable (Also I'm not sure if you're joking with that name but I really doubt there would ever be something like this literally called "libredhat," that makes about as much sense as putting a random b-tree implementation in a library called libubuntu or a libgentoo).
Re:Systemd: The Good Parts by ticviking on Sunday May 16, 2021 @10:50PM (#27179622)
>Does it really make a difference whether it's called libsystemd or something else?

Probably not. But when I think of something named "libsystemd" I think of a library to interact with systemd, not a collection of random hashmap and B-tree implementations.

> If you're talking about the other functionality that's private and unstable

Why would I talk about factoring out private and unstable code into a shared library.

But if udev is depending on that private and unstable code I do have a lot more sympathy for the packagers who are wary of the merger. It's kind of disengenuois to claim that they're totally separate projects, and can reliably be deployed separately when they both depend on some private special sauce. Even if the sauce is open sourced.

> Also I'm not sure if you're joking with that name

Half a joke and half trying to avoid the "I hate the name" problem.

You have clarified a little bit of what that library is actually doing. And why it seems to make sense to have udev pick up the dependency. Thank you.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @11:26PM (#27179798)
Sorry I wasn't clear -- most of the stuff I was talking about (hashmaps, b-trees, parsers, low-level utility functions, etc) is the private and unstable stuff, in the sense that it's a little too specialized towards systemd's style of C coding to warrant making it a public API, but it's useful enough to be shared between all the systemd components including udev. That's all the "private special sauce" is, it really doesn't make it any harder to deploy separately. They're not totally separate projects but there also is nothing really in common between them besides the build time dependency. Does that make sense?
Re:Systemd: The Good Parts by ticviking on Monday May 17, 2021 @10:18AM (#27183693)
Yeah it does.

It seems to be a symptom of the kind of social and political problems that appears to be the root of quite a lot of systemd hate.

Ultimately those who dislike it are probably better of maintaining some kind of alternative than writing rants on forums though.

I really appreciate your time helping me understand this particular issue.

Re:Systemd: The Good Parts by bkor on Sunday May 16, 2021 @09:34PM (#27179165)
You're assuming libsystemd does things which it doesn't. Saying there should've been a libudev says enough. Too much assumption the lib does loads of things around the init system part of systemd. The unneeded dislike of the library is exactly why I used to make fun of the Devuan project. Loads of decisions that pretend to be made on a technical basis, but are actually mostly emotional and "gut"-feeling.
Re:Systemd: The Good Parts by ticviking on Sunday May 16, 2021 @10:59PM (#27179658)
I think you're confusing me with another poster in this thread.

I'm mildy "not a fan of systemd" in that my minimalist sense of what a "good" system is is bothered by it and it doesn't pass my "gut-feeling" but I run way more systems with systemd than without so...

The way this whole thing is divisive fascinates me though. Systemd seems to work, and work fairly well, but also attract phenomenally loud detractors. I can't think of any other piece of software that does that. Not even PHP triggers as much back and forth. This whole udev and libsystemd thing is one of the only arguments that seems technical to me.

Re:Systemd: The Good Parts by jhasse on Sunday May 16, 2021 @05:20PM (#27177104)
> Duplicate code, could be refactored out to a shared library, that could then be incorporated in both udev, and systemd.

That's basically what has been done. The library was named libsystemd.

You seem to have a problem with the name "libsystemd".

[dead]
Re:Systemd: The Good Parts by cwyers on Sunday May 16, 2021 @05:42PM (#27177259)
No, you just categorically don't understand. libsystemd is not systemd the init system, it doesn't require systemd to be running, it is simply the name of "the shared library that everything developed under the systemd project uses for common code." Now, you can argue until the cows come home that you'd be happier if udev, systemd, and libredhathatesyou (or some other name for libsystemd that doesn't include systemd in it) were all in different Git repos, but since you can run udev without a dependency on systemd running on the system, that seems like a pretty low-stakes dispute.
Re:Systemd: The Good Parts by cyberdelica on Sunday May 16, 2021 @05:49PM (#27177329)
> No, you just categorically don't understand.

Of course I understand, as do the rest of the people not employed by red hat upvoting me.

Time and time again, I've seen systemd advocates making slippery, disingenuous, and outright false arguments. When they're called out on it, the goalposts magically move, a rotation of usernames appear to downvote and brigade which can be ascertained through downvote timing correlation. When they can't win an argument through facts, then they make bogus arguments that one doesn't get it, or some such nonsense - or claim they're a red hat conspiracy monger.

Seeing it over and and over again is lame, and played out.

Now, why don't you answer the question - if udev was subsumed by "libsystemd" as is claimed due to "code duplication" - then why did they not just include "libudev" as a dependency for "libsystemd"?

Of course, the question will never be answered, as it'll reveal the truth.

Re:Systemd: The Good Parts by dang on Tuesday May 18, 2021 @12:25AM (#27191248)
You broke the site guidelines badly here. Please review them and stick to the rules: https://news.ycombinator.com/newsguidelines.html.
Re:Systemd: The Good Parts by bkor on Sunday May 16, 2021 @09:39PM (#27179200)
> Of course I understand, as do the rest of the people not employed by red hat upvoting me.

That's a really poor argument you're making. You've only repeated things you've assumed earlier without actually responding or seemingly trying to understand what the other person said.

Libsystemd does not contain init system type logic. You're assuming way too much. There's too much blind hate. The suggestion that people are likely employed by Red Hat as a reason that they don't understand says enough.

Too much emotional responses to the systemd name, too often people use poor arguments and reasoning, while saying it is the other person that is lacking in their reasoning.

Re:Systemd: The Good Parts by zxzax on Sunday May 16, 2021 @06:04PM (#27177441)
The code savings from including udev in systemd turned out to be greater, as there was more re-usable code already written in systemd. Please be the better person and don't revive this flamewar, it's not helpful, let's stick to the technical facts and work together to find the answers we seek -- for example you can look at the git logs to see all the shared functionality and the code that was changed around: https://github.com/systemd/systemd/tree/main/src/udev
Re:Systemd: The Good Parts by cwyers on Sunday May 16, 2021 @08:08PM (#27178561)
Because they didn't want to maintain two different libraries?

(I don't work for Red Hat. My employer runs mostly Windows boxes. I mostly use Ubuntu when I use Linux.)

Re:Systemd: The Good Parts by bigbillheck on Sunday May 16, 2021 @08:42PM (#27178782)
> Do you have a problem with the Unix Philosophy?

This thread got me thinking about all the unix systems I've used, admin'd, and fought with over the years, and I suddenly remembered a system I used the early 90s when you couldn't mv a file across filesystem boundaries because what that actually was was really a copy-and-remove and not just a rename, so it was outside mv's domain.

And that's what 'the Unix Philosophy' means to me, and why I consider it not worth much.

Re:Systemd: The Good Parts by vetinari on Monday May 17, 2021 @05:39AM (#27181598)
> This thread got me thinking about all the unix systems I've used, admin'd, and fought with over the years, and I suddenly remembered a system I used the early 90s when you couldn't mv a file across filesystem boundaries because what that actually was was really a copy-and-remove and not just a rename, so it was outside mv's domain.

Many similar problems like that is exactly the reason why many systems had GNU tools installed; and "GNU's Not Unix!".

Re:Systemd: The Good Parts by kaba0 on Monday May 17, 2021 @03:29AM (#27180867)
Feel free to rename it libNotSystemdButAGeneralSharedLib and link that.. it is named systemd, not systemd-the-init-system itself.
Re:Systemd: The Good Parts by mixmastamyk on Sunday May 16, 2021 @04:46PM (#27176880)
I'd expect the opposite, if someone said they moved something to a library.
Re:Systemd: The Good Parts by edoceo on Sunday May 16, 2021 @03:59PM (#27176538)
I love Gentoo and really like they chose to make eudev and a elogind so I can continue to use OpenRC, which has been working great for me since forever.
Re:Systemd: The Good Parts by ohazi on Sunday May 16, 2021 @04:05PM (#27176572)
Don't get me wrong -- I too am extremely grateful to the Gentoo devs for maintaining eudev. It's also the obvious choice for highly memory constrained embedded Linux systems that can't fit systemd. I just think it's absolutely bonkers that it has to be a fork... eudev should really just be udev.
Re:Systemd: The Good Parts by medstrom on Monday May 17, 2021 @03:00AM (#27180729)
Credit where it's due, the GNU Guix folks made elogind and Gentoo picked it up.
Re:Systemd: The Good Parts by Valmar on Sunday May 16, 2021 @04:16PM (#27176660)
> But the one thing that still really pisses me off about systemd-the-project was the fact that they ate udev-the-project. In my view, that decision was unnecessary and was done for purely anti-competitive reasons.

The developers of udev at the time agreed to merge to the project into systemd, as it made a lot of sense to them.

There was no "devouring", no "anti-competitive" bullshit.

Re:Systemd: The Good Parts by regularfry on Sunday May 16, 2021 @07:45PM (#27178384)
Given that at the time of the merge the developers of udev were the systemd developers, "agreed to merge" seems like an odd presentation of that particular piece of history.
Re:Systemd: The Good Parts by bkor on Sunday May 16, 2021 @09:51PM (#27179275)
Why? You're saying it was pushed. But actually the maintainers agreed. Further, the maintainers overlapped. Instead of acknowledging that it wasn't pushed because the maintainers overlapped you make up "anti-competitive" behaviour.

I work for a company where every year there is a mandatory refresher on anti competition laws / behaviour. The suggestion that this is done for malicious purposes is highly offensive, yet so easily stated. This without actually going into a lengthy and thorough explanation. I think you're failing to understand how offensive you're being towards these developers. So easily using very harsh words, so easily dismissing what anyone else says, plus what the developers said. Yet not actually proving any good proof for your statements.

Re:Systemd: The Good Parts by regularfry on Monday May 17, 2021 @04:46AM (#27181314)
> Why?

Because saying that they were separate groups implies a level of propriety to the decision that doesn't hold when the groups "overlap".

> You're saying it was pushed.

Am I? Where?

> But actually the maintainers agreed.

At the risk of repeating myself, this implies a level of propriety to the decision that doesn't hold when the maintainers are the same in each group.

> I work for a company where every year there is a mandatory refresher on anti competition laws / behaviour.

Didn't take, did it? Just for giggles, see if you can identify the common factor in these classes of anticompetitive behaviour:

  - Cartel price-fixing
  - Refusal to deal
  - Conspiracy to monopolise
  - Dividing territories
  - Regulatory capture

> I think you're failing to understand how offensive you're being towards these developers.

I don't. I also don't think they need you to defend them.

Re:Systemd: The Good Parts by Blikkentrekker on Sunday May 16, 2021 @07:09PM (#27178054)
> But the one thing that still really pisses me off about systemd-the-project was the fact that they ate udev-the-project. In my view, that decision was unnecessary and was done for purely anti-competitive reasons.

Such are all the common criticisms on systemd.

It was never a technical objection; it was a political objection to the fact that systemd unnecessarily coupled things that could and should be separated, but were coupled not for technical reasons, but for anticompetitive ones, and this goes beyond systemd.

Many Red Hat projects have a way of finding themselves to be dependent on one another in ways that are often hard to justify from a technical standpoint, and often even use unstable, undocumented interfaces that they make available for one another.

Re:Systemd: The Good Parts by regularfry on Monday May 17, 2021 @05:13AM (#27181460)
Unnecessary coupling of components is a technical objection. It's poor engineering, and that criticism was framed by systemd supporters as political.
Re:Systemd: The Good Parts by Blikkentrekker on Wednesday May 19, 2021 @08:33AM (#27207672)
By that argument, all criticism of software is technical.

The argument is that it's not done due to incompetence, but commercial strategies.

Re:Systemd: The Good Parts by kaba0 on Monday May 17, 2021 @03:39AM (#27180921)
How about the technical standpoint of having loose coupling everywhere is bug prone and hard to maintain? Will you create a public API that you will break at each update? That’s not too different to what is the state now. Should you carry around 10 years old baggage APIs or what exactly would you propose?
Re:Systemd: The Good Parts by egberts1 on Sunday May 16, 2021 @04:57PM (#27176960)
systemd still hasn’t properly replaced ISC dhclient so I dumped the entire systemd and went both Gentoo and Denuvan (systemd-free Debian).
Re:Systemd: The Good Parts by bkor on Sunday May 16, 2021 @09:44PM (#27179222)
Are you being sarcastic? The DHCP bits are entirely optional. You can either use it, or not use it. The code is useful in some cases, not useful in others.

Saying that some optional code has issues as a reason to not just use something else, but as a reason to not use the project: not logical.

Re:Systemd: The Good Parts by egberts1 on Thursday May 20, 2021 @11:41AM (#27222604)
Try getting Nintendo to do a DHCP with systemd, you can’t. Nor with Juniper DHCP server configured by Comcast and Verizon, you can’t. Hence, ISC dhclient remains.