put the shell to wsl2hack and setting default user causes a bug with the "bash from here" in explorer.
In Windows 11, is an alternative:
Don't change the default shell of root and don't change default user to root.
create a file
/etc/wsl.conf
and put
[boot]
command=/usr/local/bin/wsl2hack
put the shell to wsl2hack and setting default user causes a bug with the "bash from here" in explorer.
In Windows 11, is an alternative:
Don't change the default shell of root and don't change default user to root.
create a file
/etc/wsl.conf
and put
[boot]
command=/usr/local/bin/wsl2hack