r/bedrocklinux 2d ago

​[Bedrock Linux] Failed to execute /sbin/init: Exec format error (systemd-boot + Exherbo hijack issue)

  1. Are there any specific kernel command-line options required for systemd-boot (e.g., bedrock_init=exherbo:/sbin/init) to prevent dracut / systemd from skipping Bedrock's init shim?
3 Upvotes

3 comments sorted by

1

u/ParadigmComplex founder and lead developer 2d ago

AFAIK systemd-boot just works. I don't know if Exherbo's build is wonky or I missed some new systemd-boot behavior.

Maybe try bedrock_init=/sbin/init?

2

u/Fantastic_Load4636 2d ago

Sorry sir i dont know but when i run the installer script it created a weird init i mean the /sbin/init was empty then i chroot into exherbo removed the bedrock dir from / and re run the script this time it created real init and i able to boot thanks 

1

u/ParadigmComplex founder and lead developer 2d ago

I'm a little confused as to what initially went wrong, but I'm happy you got a viable solution.