Adding systemd to postmarketOS (postmarketos.org)
from cypherpunks@lemmy.ml to linux@lemmy.ml on 05 Mar 2024 19:21
https://lemmy.ml/post/12817215

#linux

threaded - newest

BautAufWasEuchAufbaut@lemmy.blahaj.zone on 05 Mar 2024 21:08 next collapse

Exciting to see! Positively surprised Alpine is modular enough to make this feasible/maintainable.
Curious to see what the part about SystemD and musl at the end meant.

aport@programming.dev on 05 Mar 2024 21:49 collapse

Our current understanding having spoken to systemd developers is that we should be able to find a path that brings us much closer to upstream, if not entirely.

The only way the systemd developers will allow musl support upstream is if musl supports the glibc-isms that systemd uses.

They have been extremely clear that they will not carry patches for other libcs.

possiblylinux127@lemmy.zip on 05 Mar 2024 21:30 next collapse

Makes sense

TCB13@lemmy.world on 05 Mar 2024 21:38 next collapse

postmarketOS just gained my respect. To be fair there’s no point in running a Linux system without systemd as you’ll end up installing 32434 different RAM wasting services to handle things like cron, dns, ntp, mounts, sessions, log management etc.

possiblylinux127@lemmy.zip on 05 Mar 2024 22:52 next collapse

The only time it does make sense is on minimal systems like routers

rmicielski@slrpnk.net on 06 Mar 2024 07:46 collapse

because we all know that routers have so much RAM that installing DNS, NTP, mounts, session, log management isn’t a problem? something doesn’t add up…

TCB13@lemmy.world on 06 Mar 2024 11:43 next collapse

I believe @possiblylinux127@lemmy.zip 's point was that in OpenWRT and others it makes more sense to have smaller daemons instead of systemd because they aren’t using the standard ones you’ll usually find under Debian and other Linux distros. They take daemons and slim them down to the point they become smaller than systemd at the cost of features that aren’t required on routers.

possiblylinux127@lemmy.zip on 06 Mar 2024 15:05 collapse

Exactly, although it applies to more systems other than OpenWRT

possiblylinux127@lemmy.zip on 06 Mar 2024 15:04 collapse

Routers lack storage and RAM both of which are used up by using a heavier init. Most of the time you will see a very basic system start services by putting them in init.d

Auli@lemmy.ca on 06 Mar 2024 15:55 collapse

Man my router has 512 Gigs and 16 gigs or RAM. R

possiblylinux127@lemmy.zip on 06 Mar 2024 16:20 collapse

Mine has 128mb of ram. What on earth are you running on your router than needs that much hardware. I just bought a device from Walmart

JasonDJ@lemmy.zip on 06 Mar 2024 23:31 collapse

Probably running OPNSense in a VM.

possiblylinux127@lemmy.zip on 06 Mar 2024 23:31 collapse

With 16gb or ram?

JasonDJ@lemmy.zip on 06 Mar 2024 23:34 collapse

Rams cheap. Maybe he’s getting full ipv6 routing tables.

LeFantome@programming.dev on 06 Mar 2024 15:45 collapse

Whether you like Systemd or not, let’s not spread disinformation.

All these things still exist with Systemd. They are just called Systemd dash something. Also, while Systemd is feature rich, it is pretty heavy relative to many alternatives.

Distros that avoid Systemd typically do so because they consider it bloated and possibly insecure.

If you are a fan of Systemd, it is probably because you like the standardization and the integration across previously disparate services. That makes sense. If you think it is making your system faster or lighter, you have not explored the alternatives. Obviously Systemd was a big leap forward in init. Other systems have appeared that also work really well but they are probably too late to matter mainstream. The “market” has spoken and Systemd is the winner.

Atemu@lemmy.ml on 06 Mar 2024 17:07 next collapse

I’ve yet to find a use-case for “making my system lighter” by exchanging a daemon that takes <0.1% of my total system memory for a bunch of poorly maintained bash scripts.

TCB13@lemmy.world on 07 Mar 2024 09:22 collapse
TCB13@lemmy.world on 07 Mar 2024 09:17 collapse

All these things still exist with Systemd. They are just called Systemd dash something

Although you’re right that’s not that “cut and dry” there’s a lot integrated and baked into the systemd core. Even if you consider a “systemd dash something”, let’s say systemd-networkd we’re suddenly talking about a single efficient daemon that covers all networking from basic IPv4 DHCP to IPv6 (with all it’s possible addressing schemes), can act a client or more like a typical router acts, delegate stuff and manage the entire thing from top to bottom in a cohesive way.

Just think about the amount of crap you’ve to setup to have a system do dual stack networking and provide prefix delegation on another interface, with systemd it’s just systemd-networkd. From the basics to serve IP’s, the classical isc-dhcp can do both IPv4 and IPv6, however…

the ISC DHCP server can only serve IPv4 or IPv6, means you have to start the daemon twice (for IPv6 with option ”-6”) to support both protocols.

Or you’ll just find you the implementation is bad and you’ll run wide-dhcpv6 instead. And then you won’t survive without radvd for router advertisements etc.

If you are a fan of Systemd, it is probably because you like the standardization and the integration across previously disparate services. That makes sense. (…) Obviously Systemd was a big leap forward in init.

Exactly, systemd solves tons of painful issues and provides a cohesive ecosystem of tools to manage Linux systems. While there are other great alternatives none as are complete and solid as systemd.

If you think it is making your system faster or lighter

But it may. By not having to deal with bunch of poorly integrated tools such as dhcpcd, dhcpv6, radvd, chrony, NetworkManager, resolvconf, logrotate and others we might actually have less overhead. And I’m not even talking about the time we don’t have to spend making sure all those integrate properly learning 234 different configurations syntaxes and dealing with specific bugs that only happen when program X interacts with program Y with feature Z enabled.

I’m not saying system it perfect, because it isn’t but it sure provides a LOT of piece of mind, stability and makes Linux a lot better than it used to be with init and friends.

olafurp@lemmy.world on 06 Mar 2024 12:17 next collapse

Next step is drivers that allow switching on/off components of the phone through systemd to save battery. Proper drivers are the only major missing piece for Linux phone OS right now.

When Linux phone comes with lasting battery and fast waydroid I’ll switch.

Pantherina@feddit.de on 06 Mar 2024 13:57 collapse

And firmware updates haha

possiblylinux127@lemmy.zip on 06 Mar 2024 16:25 next collapse

Well that’s harder

BautAufWasEuchAufbaut@lemmy.blahaj.zone on 07 Mar 2024 04:09 collapse

What firmware do you mean?

Pantherina@feddit.de on 07 Mar 2024 09:48 collapse

The firmware of the device components, that needs to be signed by the manifacturer and often has critical bugs.

BautAufWasEuchAufbaut@lemmy.blahaj.zone on 08 Mar 2024 07:36 collapse

I see, but which components do you mean specifically?

Pantherina@feddit.de on 08 Mar 2024 10:02 collapse

Modem, wifi/bluetooth chip, many more possibly.

BautAufWasEuchAufbaut@lemmy.blahaj.zone on 08 Mar 2024 22:31 collapse

In case of the modem I know it doesn’t need to be signed. In fact, there exists an open source firmware for it.

Pantherina@feddit.de on 09 Mar 2024 01:30 collapse

Cool! Thanks for the info

MonkderZweite@feddit.ch on 06 Mar 2024 13:30 next collapse

So it will be only Systemd, no s6 or whatever without hacks and compatibility shims… sounds like bad news to me.

cypherpunks@lemmy.ml on 06 Mar 2024 13:45 collapse

So it will be only Systemd

what? no. did you read the linked post? Some desktop environments will have more functionality and work better if you do use it, but (for now, at least) you can still run even GNOME under OpenRC if you want.

[deleted] on 06 Mar 2024 14:19 next collapse

.

fullmetalScience@monero.town on 07 Mar 2024 11:10 collapse

This is bad news for those of us who were not only looking to give old mobile hardware a longer lifespan, but simultaneously obtain privacy and security while doing so.

The arguments provided in the blog post are rather faint and give a vibe of “holding on to last straws”, as other distributions and even BSD’s have managed to run both GNOME and KDE fine, even before pmOS.

For readers unfamiliar with systemd’s drawbacks, these resources can serve as good starting points:

without-systemd.org // nosystemd.org


Out of curiosity: Can you point to a log of the communication with the Alpine team?