BusyBox: Life Without Systemd (2018)
busybox.net
busybox.net
Or maybe I didn't get the point of this. It doesn't look to me like this is one of the regular rants against how systemd destroys everything. But I could be wrong about that?
Runit tools in busybox - up to the task?
Let's test busybox's runit applets in a hypothetical ;) scenario
when someone needs to stop running, say, systemd on, say, a Fedora machine.
No doubt this will expose various shortcomings.
To me, This just seems like a fun experiment to demonstrate busybox's capabilities.The whole point of those new complex init systems was to boot faster. It definitely works for my desktop or laptop, but apparently not so much with the cloud.
If it's not gonna boot fast, I don't see the point of replacing straightforward shell scripts.
Otherwise, if it's bare metal, I'm usually still waiting for the ram to finish counting by the time I'm done with whatever cursed thing put me back in a cage.
I didn't do the work of reverse-engineering all the bloat that's in there.
> If it's not gonna boot fast, I don't see the point of replacing straightforward shell scripts.
If you do a lot of stuff and have a complex boot shell scripts are neither fast nor 'straightforward'.
Systems don’t just boot slowly “in general”, there’s specific things happening slowly and if you know exactly what the you can fix it.
One for general startup expanding the root fs to the available boot disk size, one more to run cloud-init or equivalent, and the a final more.
Then again, depending on what services are actually enabled... It might take a bit more to become available/ready/green for use.
Minimal init is super stable in time, rock solid, code is close to zero, aka near 0 maintenance, doing a good enough job.
But, GNU with some of its minions is waging war on busybox: for instance the steam client is not distributing a static ELF64 of bash (and it could easily), but does distribute _mandatory_ bash and not sh scripts, and those scripts are carefull of using GNU command only niche options... but the main steam client binary seems about to kill those script abominations... hopefully... but that steam client binary is a ELF32 binary expecting x11/GL... oooh god... (it should be a super clean ELF64 binary: only glibc libs in NEEDED entries with a 2017-2019 manual ABI selection, dynamically loading system interface sharde libs, and without too brain damaged or recent ELF relocations (aka serious professional elf/linux binary crafting).
I run systemd on desktops and servers and I rarely do any maintenance at all on systemd either... I get a bunch of features for free though (like service management, parallel software boot)
https://www.rocketgit.com/user/sylware/muinit (ofc not on github, but on a git repo with noscript/basic (x)html clean support).
And for broken software still using udev instead of direct linux kernel event (or inotify or file system polling), a fork of udev: https://www.rocketgit.com/user/sylware/mudev (had to do some fixing for all the attempts at breaking old udev to force people to use that abomination of systemd-udev).
The "abomination" word is fair.
This init is still using C99, I plan to move to RISC-V 64bits assembly interpreted on x86_64, but this is a goal on the very long run. I wish for RISC-V success all over the board (desktop/server/mobile/embedded/etc). Because, ultra high complex languages with their very few compilers are a problem for real-life alternatives and because of "conveniently backdoored machine code generation with correct high level language code"...
But I'd like to see more general-purpose embedded-focused distribution with systemd. The only ones I know about are the special-purpose LibreELEC/Jelos/Rocknix/Lakka variants.
It'd be nice to see such a distribution, but with proper package management. I was hoping https://distr1.org/ would become this, but it seems like it's been more or less abandoned.
From what i read at https://docs.yoctoproject.org/dev-manual/init-manager.html (quick google search) you should be able to configure it to use any of sysvinit, busybox init or systemd.
In 2024 it is not worth to deal with alternative init systems.
On one of my systems, systemd takes 40s vs a simple script with `mount` and other commands, which takes just ~200ms. And it also fails to reload, because system has "too little RAM".
It's more flexible, but that flexibility has a huge cost on smaller systems.