There is a need to easily automount vhdx virtual disk images in WSL2 every time WSL2 is booted.
Now vhdx can be easily mounted in a WSL2 distro, but only after WSL2 has started and it required to be re-mounted every time WSL2 is rebooted.
Various automation scripts and hacks exist to achieve that, but they are not 100% reliable and not elegant.
The proposed solution is to add the ability to mount a vhdx by specifying the image alongside with the mount options in the [automount] section of .wslconfig, wsl.conf every time the WSL2 is booted.
There is a need to easily automount vhdx virtual disk images in WSL2 every time WSL2 is booted.
Now vhdx can be easily mounted in a WSL2 distro, but only after WSL2 has started and it required to be re-mounted every time WSL2 is rebooted.
Various automation scripts and hacks exist to achieve that, but they are not 100% reliable and not elegant.
The proposed solution is to add the ability to mount a vhdx by specifying the image alongside with the mount options in the [automount] section of .wslconfig, wsl.conf every time the WSL2 is booted.