wsl: expose /run/WSL in the SkiffOS system
clayauld opened this issue · 15 comments
@clayauld you'll also need to delete these for the Go update:
rm -rf ./workspaces/default/build/host-go-1*
rm -rf ./workspaces/default/host/usr/lib/go
Someone must mount over /run, I guess systemd. Will look into it
@clayauld Due to /etc/fstab containing a line mentioning /run systemd mounts a tmpfs to /run.
This must be hiding the bind mount made by skiff-init-squashfs.
@clayauld Let's try mounting the entire /run dir from the WSL environment and disable systemd run.mount
I did that on the fix-wslu branch: #227
As before we will need to rebuild skiff-init-squashfs:
rm -rf ./workspaces/default/build/skiff-init-*
git fetch
git checkout fix-wslu
git reset --hard origin/fix-wslu
git submodule update
make configure compile
@clayauld are you sure you're on the latest fix-wslu branch commit and have recompiled skiff init as described above?
The logs don't mention /run but they should, there's a line in the config saying to mount /run itself and it should at least show up in those logs there.
/run/WSL seems to be available now.
When I run the wslu commands I still get the error wslpath: command not found
I was looking at the source code for wslu and it still looks for the binary or script wslpath
in the PATH. Based on another install of WSL I have running (Pengwin Linux), wslpath
is a symlink to /init
. I'm not sure if that is common across WSL distros, but I have found stale versions of re-implimentations of wslpath on Github. None of them seem to work as expected, however. I was thinking of just doing a manual install of one of those if they worked as expected, but no success so far.
I can do more digging later this weekend and test other WSL distros to see how they deal with this.
wslpath
is a symlink to /init
which means that /init
as provided by microsoft implements wslpath if it is started with wslpath
in $0
/init
doesn't exist inside the skiffos chroot but I will try to find a way to get it in there.
Okay That seems to have resolved the issues.
Great! Thanks for testing