This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 121
Footloose not working on WSL? #268
Comments
Your download failed, as the link returns 404.. |
Oh, O.K., I did not notice that. Maybe someone should update the readme with a working link. Thank you! |
I managed to download the correct footlose binary but running the image does not work:
|
Probably this: microsoft/WSL#4189 |
You need SystemD but WSL2 doesn't have SystemD running as an init process like typical distributions (and it's hard to start it because it requires PID 1) but there's a workaround: # Install the required packages for SystemD
apt install -yqq fontconfig daemonize
# Create the starting script for SystemD
vi /etc/profile.d/00-wsl2-systemd.sh
SYSTEMD_PID=$(ps -ef | grep '/lib/systemd/systemd --system-unit=basic.target$' | grep -v unshare | awk '{print $2}')
if [ -z "$SYSTEMD_PID" ]; then
sudo /usr/bin/daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
SYSTEMD_PID=$(ps -ef | grep '/lib/systemd/systemd --system-unit=basic.target$' | grep -v unshare | awk '{print $2}')
fi
if [ -n "$SYSTEMD_PID" ] && [ "$SYSTEMD_PID" != "1" ]; then
exec sudo /usr/bin/nsenter -t $SYSTEMD_PID -a su - $LOGNAME
fi Terminate wsl from powershell:
After this |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I installed footloose on WSL (Windows Subsystem for Linux) following the readme:
But I can't run it:
The text was updated successfully, but these errors were encountered: