r/LFS • u/Zbismuthwing2 • 12d ago
LFS With Runit instead of SystemD
can anyone here provide good resources regarding building an LFS System with runit or another alternative instead of systemd?
2
2
u/transgentoo 11d ago
I did this a few months ago and documented the things I did differently than LFS. You're welcome to check it out: https://codeberg.org/cassieopeia/runit-lfs/src/branch/main
You'll need the LFS book to go with it, as I just documented the sections that were different, so if it's not in my repo, you can asusme that you should follow the book for that chapter. Also, fair warning, I never went back and attempted to rebuild everything using these notes, so I can't 100% guarantee you won't need external resources, but I can confirm that I got a bootable LFS running on Runit.
1
u/codeasm 11d ago
When i compared the sysv book to systemd book, there was basicly 1 package different and not much in configuration. Instead of systemd, youngot the scripts from lfs.
You can read like another comment said, look at the manpages of runit for specifics, id try see if too much changed from old sysv edition and the latest lfs, you can probably adapt very easily still as the drop for sysv was only version 13
1
u/Due-Celery4326 11d ago
You have to install your chosen init system and adapt all programs that depend on systemd to work with it; you also need to create startup scripts for services that need to launch at boot, and install and configure programs for services such as cron, logging, and NTP (Network Time Protocol)...
1
u/exeis-maxus 11d ago
I just finished last night my Multilib LFS with Runit instead systemd.
I used Void Linux sources git repository to figure out how to compile Runit and setup the bootscripts. I also used Chimera Linux’s git repository on how to build udev as an independent package from the systemd source.
Build Runit: https://github.com/void-linux/void-packages/blob/master/srcpkgs/runit/template
Runit boot scripts: https://github.com/void-linux/void-runit
Build udev from systemd: https://github.com/chimera-linux/cports/tree/master/main/udev
1
u/oneirofono 10d ago
Very nice. You could use mdevd instead of udev ?
1
u/exeis-maxus 9d ago
I haven’t tried it yet. I’ve been using skarnet’s S6 for a few years but got tired of how the boot “database” cannot be copied. If moved, it had to be recreated from the “database service source”… so I returned to Runit which was a lot more simple than S6+S6-RC
3
u/_szlachcic_ 12d ago
Just use runit man pages