Ensure we always use the same systemd command line if it is ever changed in one place it is updated in all other places via using a variable
Don't go into an infinite loop waiting for systemd to start
Don't try to use $HOME/.systemd-env if it doesn't exist
Don't update /etc/bash.bashrc if the changes are already present - e.g. if the install script is run multiple times
Disable systemd's attempts to re-mount /proc/sys/fs/binfmt_misc because it is already mounted by WSL and the re-mount breaks WSL Interoparability (Issue #15)
Provide manual command instructions in the case that we can't automatically update the Windows environment using WSL Interoperability
The changes are:
systemd
command line if it is ever changed in one place it is updated in all other places via using a variable$HOME/.systemd-env
if it doesn't exist/etc/bash.bashrc
if the changes are already present - e.g. if the install script is run multiple times/proc/sys/fs/binfmt_misc
because it is already mounted by WSL and the re-mount breaks WSL Interoparability (Issue #15)Fixes #15
Signed-off-by: Daniel Llewellyn daniel@bowlhat.net