From 085498b62ca37414d7c97fca9063526032c1f36e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 7 Nov 2026 21:43:34 +0900 Subject: cmd/earlyinit: make compatibility symlinks Legacy software like the X server hardcodes a FHS path to the shell. Since Rosa OS does not mount over /, this has to be created during boot. Signed-off-by: Ophestra --- cmd/earlyinit/main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd/earlyinit') diff --git a/cmd/earlyinit/main.go b/cmd/earlyinit/main.go index a7591af8..fff80bd8 100644 --- a/cmd/earlyinit/main.go +++ b/cmd/earlyinit/main.go @@ -274,6 +274,12 @@ func main() { mustMountSystem(ctx, s, devpath) } + // make legacy software (e.g. Xwayland) happy + must(os.Mkdir("/bin", 0555)) + must(os.Symlink("../system/bin/sh", "/bin/sh")) + must(os.MkdirAll("/usr/bin", 0555)) + must(os.Symlink("../../system/bin/env", "/usr/bin/env")) + if slices.Contains(flags, flag9P) { // avoid having to wait for the uevent loop modprobe("-a", "9p", "9pnet_virtio", "virtio_pci") -- cgit v1.3.1