void-linux / runit

The init system for Void Linux.
https://voidlinux.org
169 stars 22 forks source link

Changing the coreutils to Busybox, Toybox, Sbase+Ubase results in error. #29

Closed xplshn closed 10 months ago

xplshn commented 10 months ago

The Runit init scripts(/etc/runit/1, 2, 3) fail after a reboot after changing the coreutils for more POSIX ones. Examples of why is are using swapon(1) -a and halt -B. Those are not the only ones, I just don't remember more right now. This would be a huge milestone for making Void Linux embedded friendly, though I know this system does not cater to the embedded Linux community, I'd be very grateful if any core Void developer cared.

https://github.com/xplshn/AltSys contains a janky script that setups toybox+ubase+sbase(in that order) at /opt/ and changes the PATH variable in /etc/profile so that it works without breaking /etc/runit(unless you uninstall the coreutils).

ahesford commented 10 months ago

This isn't even the proper repository to address issues with the core-services scripts. Nevertheless, the core services target the standard tooling in Void. If you're going to replace that tooling with custom alternatives, you should expect to rewrite the services that depend on them. Furthermore, I don't thing swapon or halt interfaces are like this are governed by POSIX, and we don't target strict POSIX compliance either way.

sgn commented 10 months ago
xplshn commented 10 months ago

Toybox's implementation of swapon does not have the -a flag, and ubase's does not receive UUID= arguments. Thanks for pointing me to the right repo anyways.