|
|
Log in / Subscribe / Register

Systemd discusses its kernel-version needs

Systemd discusses its kernel-version needs

Posted Mar 31, 2022 3:50 UTC (Thu) by developer122 (guest, #152928)
Parent article: Systemd discusses its kernel-version needs

Kernel devs may be loath to accept it, but people install brand-spanking-new userspaces on top of truly prehistoric kernels all. the. time. A chip may at best have a 2.6 vendor kernel, but the chip will be cheap/well known and the kernel will boot. That 2.6 setup is the only known working configuration. Either mainline was never ported to the chip (or doesn't work anymore), or you're working with binary-only modules that make key bits of hardware work, or some similar sordid arrangement.

The stability of the userspace API means that *most* applications will still work on it though, so whoever is supporting it (a product engineer pre-launch or someone managing a company's fleet of hardware in the wild) will dutifully patch together a workable userspace, one required binary at a time. Take the old kernel and modules, build most of a debian root, add a brand new version of smbd, an ancient version of busybox, a semi-recent version of perl, and so on until all your application needs are met. This is how 2.6 devices continue to enter the wild and continue to survive.

If you want to see a public version of this, look no further than the wifi router hacking scene out on the fringes of openWRT. Things like the Transcend wifi-enabled SD card that turned out to be a miniature linux box. Ancient kernel and kernel modules to run wifi and the custom SD interface, but someone built a brand new debian userspace for it and ran firefox over X11. A few people now use it "in production" as a means to get podcasts into dumb CD players and one guy built it a "motherboard."


to post comments

Systemd discusses its kernel-version needs

Posted Mar 31, 2022 7:24 UTC (Thu) by johannbg (guest, #65743) [Link] (2 responses)

Little to do with loathing to accept it but everything to do with having to or be expected to support it, which costs time of someone's lifespan.

Here's the thing people are like water, they always take the shortest path which in this case is pushing all the work that is required to make that work on the hands of upstreams as opposed to they themselves having to do the ( hard ) work, of making that work themselves.

Those that have realized this and value other peoples time are the once that are making the PR's to upstreams, putting in the required leg work themselves not the ones that are making the decisions downstream.

Upstream should just band together and put a stop to this vendor/downstream release madness that has been going on for decades, which can easily be done by simply not supporting it.

Form a union of upstream of sorts.

Systemd discusses its kernel-version needs

Posted Mar 31, 2022 9:43 UTC (Thu) by taladar (subscriber, #68407) [Link]

It is not always upstream. Sometimes upstream are also the unreasonable ones and distro maintainers have to patch their mess of old vendored dependencies to work with up-to-date maintained versions without security holes.

In general I agree though. Don't allow other people to push the maintenance burden for their choices onto you without your consent.

Systemd discusses its kernel-version needs

Posted Apr 1, 2022 21:52 UTC (Fri) by developer122 (guest, #152928) [Link]

The required support rarely makes it's way into mainline. This stuff is largely out of the sight of kernel devs.

Systemd discusses its kernel-version needs

Posted Apr 1, 2022 8:36 UTC (Fri) by matthias (subscriber, #94967) [Link]

> The stability of the userspace API means that *most* applications will still work on it though, ...

Actually, the stability of userspace API works exactly the other way round. Old userspace is still supported on new kernels. The kernel cannot make a promise that new userspace will work on old kernels. If new userspace still runs on old kernels then this is purely because of compatibility layers in userspace, e.g., libc falling back to older APIs if newer ones are not available.

And of course it really helps that most userspace code does not really care about most of the kernel interfaces. Much of the interaction with the kernel is passed through system libraries, which thankfully have compatibility layers to support old kernels. And many kernel interfaces are only relevant to the basic plumbing layer like systemd, udev, etc., that is to a very small set of programs.

Systemd discusses its kernel-version needs

Posted Apr 13, 2022 0:58 UTC (Wed) by mirabilos (subscriber, #84359) [Link]

Just don’t use systemd for these very valid applications.

Or, you know, well, don’t use it, at all. ;-)


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds