mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 158 forks source link

WSL-Terminal crash after changing root mount path in '/etc/wsl.conf' #129

Closed m-kutnik closed 4 years ago

m-kutnik commented 5 years ago

Versions

wsl-terminal: 0.8.11 Windows 10 Pro 1809 Used shell version: WSL (Ubuntu 18.04.01)

Problem description

The Spring 2018 stable edition of Windows now supports adding in a wsl.conf file where you can customize the root mount location ( default: /mnt ). Docker for Windows expects things to exist at /c instead of /mnt/c when it comes to mounting volumes.

Steps to reproduce

  1. Configure /etc/wsl.conf:
    [automount]
    enabled = true
    root = /
  2. Sign Out, Sign In, or Restart PC
  3. Open WSL-Terminal -> crash

Fix

As pointed here problem is wslbridge related. Fixed wslbridge binaries: comment, files (by @Maximus5)

Everything works well.

mcfiredrill commented 5 years ago

Is this fixed? I'm still seeing it in the latest version...

m-kutnik commented 5 years ago

@mcfiredrill if not, download fixed binaries and move them to 'C:..[path-to-your-wsl]..\bin'

mcfiredrill commented 5 years ago

Hmm tried those binaries and its still crashing for me...

AlisterH commented 5 years ago

It seemed to me to be caused by the existence of /etc/wsl.conf - no problem if I removed it, but not working even if it was any empty file.

No difference with the "fixed" binaries.

But now (same day) it is still not working even though there is no /etc/wsl.conf at the moment. So I'm inclined to think there's something going on in Windows or WSL itself that causes the problem.

anribras commented 4 years ago

"fixed" binaries not worked for me , either. @m-kutnik