nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.9k stars 91 forks source link

[Feature Request] Install DistroD through script #29

Open GuilleAmutio opened 2 years ago

GuilleAmutio commented 2 years ago

Hello,

I don´t know if this feature is already developed but instaead of going through an .exe file and install a WSL distro step by step I find quite interesting the idea of installing the distro with something like: install.sh --os=ubuntu

webknjaz commented 2 years ago

Love this idea! I was about to post a similar feature request — it'd be great to be able to pass args to the installer instead of selecting things interactively. This would allow me to use it for provisioning WSL2-enabled CI workers, for example...

webknjaz commented 2 years ago

Promptly looking at the source at https://github.com/nullpo-head/wsl-distrod/blob/e4aa1ea/distrod/distrod_wsl_launcher/src/main.rs#L34 suggests that it should be possible already with something like distrod-install --distro-name=fedora install (needs to be tested, my Rust-fu is rather rusty). But yeah, it'd be great if it was documented what's possible.