diff options
Diffstat (limited to 'cmd/earlyinit')
| -rw-r--r-- | cmd/earlyinit/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
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") |
