-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: cannot access '/proc/sys/fs/binfmt_misc': Too many levels of symbolic links #38
Comments
I stopped having this issue when I installed clang, I think it installs a package called |
This seems to solve the problem: wslview also works without complaining. |
I'm currently having the same issue with the Arch image and the wslu tools. Unfortunately there doesn't seem to be a From arkane-systems/genie#142 |
I am aware of this solution provided by genie, and inspired by it, I have adopted the following solution: sudo vim /etc/systemd/system/rc-local.service The modifications are as follows, mainly to add
The Manually create a sudo vim /etc/rc.local Write the commands that need to be executed at startup to a file, for example #!/bin/bash
# Note the line above
ls /proc/sys/fs/binfmt_misc > /dev/null 2>&1 || \
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc Also, don't forget to add executable permissions to sudo chmod a+x /etc/rc.local Then enable sudo systemctl enable rc-local Then start the service and check its status sudo systemctl start rc-local.service
sudo systemctl status rc-local.service At this point, Then edit sudo systemctl edit systemd-binfmt.service in the position shown in the figure below Fill in the following to start [Unit]
After=rc-local.service Then press Then press Enter to successfully save the configuration restart WSL
success |
Can confirm that this solution fixed the issue for me. Thank you very much! |
Describe the bug
/proc/sys/fs/binfmt_misc
cannot be accessed due too many levels of symbolic links.Steps to reproduce
Install a WSL distro through distrod_wsl_launcher or update one through install script.
Expected behavior
/proc/sys/fs/binfmt_misc
is still available.Windows version
Microsoft Windows [Version 10.0.22000.466]
Linux kernel version
Linux 5.10.93.3-microsoft-WSL2 #1 SMP Sun Jan 23 18:53:16 CET 2022 x86_64 GNU/Linux
Distro
archlinux
How did you install that distro?
Enabled
distrod
in an existing WSL2 distroLogs
[andi@ANDI distrod_wsl_launcher-x86_64]$ ls -al /proc/sys/fs/binfmt_misc
ls: cannot access '/proc/sys/fs/binfmt_misc': Too many levels of symbolic links
additional comment
Should be the same issue as in DamionGans/ubuntu-wsl2-systemd-script#17.
The text was updated successfully, but these errors were encountered: