armbian-next: officially support WSL2; pester user for UTF-8 terminal

- new `wsl2.sh` file with WSL2-related functions; checking/validating/pestering user; allow WSL2 (not WSL1)

Co-authored-by: Ricardo Pardini <ricardo@pardini.net>
This commit is contained in:
Tony
2023-01-18 15:45:50 +01:00
committed by Ricardo Pardini
parent bf891d54d9
commit f549ddb273
3 changed files with 55 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ function prepare_host() {
# Those are not logged, and might be interactive.
display_alert "Checking" "host" "info"
obtain_and_check_host_release_and_arch # sets HOSTRELEASE and validates it for sanity; also HOSTARCH
check_windows_wsl2 # checks if on Windows, on WSL2, (not 1) and exits if not supported
check_host_has_enough_disk_space # Checks disk space and exits if not enough
wait_for_package_manager # wait until dpkg is not locked...