Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
xplshn opened this issue Dec 20, 2023 · 3 comments
Closed

Comments

@xplshn
Copy link

xplshn commented Dec 20, 2023

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
Copy link
Member

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
Copy link
Member

sgn commented Dec 20, 2023

  • swapon and halt ain't governed by POSIX
  • We take swapon from util-linux, but every proper swapon (including BusyBox's) have swapon -a
  • Those scripts come from https://github.com/void-linux/void-runit/ which includes its own version of halt. So, it should work with that very version of halt.
  • Anything else?

@xplshn
Copy link
Author

xplshn commented Dec 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants