DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
1.56k stars 383 forks source link

Too many levels of symbolic links when running ls -l /proc/sys/fs/binfmt_misc #15

Closed hnakamur closed 4 years ago

hnakamur commented 4 years ago

After running bash ubuntu-wsl2-systemd-script.sh and wsl.exe -t ${DISTRIBUTION_NAME} and reopen a terminal for WSL2 VM, I get the following error when I run ls -l /proc/sys/fs/binfmt_misc.

$ ls -l /proc/sys/fs/binfmt_misc
ls: cannot open directory '/proc/sys/fs/binfmt_misc': Too many levels of symbolic links

It would be nice to fix this problem.

lucyllewy commented 4 years ago

I did fix this for myself, but have forgotten what the actual change was in full. I'll try to figure out the exact steps to fix this shortly.

jramiresbrito commented 4 years ago

How things are going about this @diddledan ?

lucyllewy commented 4 years ago

@jramiresbrito the code from PR #17 fixes this. Once Damion merges it then it'll be available in this repo. Until then you can use the copy from the binfmt_misc branch in my fork at https://github.com/diddledan/ubuntu-wsl2-systemd-script/tree/binfmt_misc

DamionGans commented 4 years ago

I have merged the PR :-) enjoy!