mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add experimental check for WSL hosts
This commit is contained in:
@@ -531,6 +531,11 @@ prepare_host()
|
|||||||
exit_with_error "It seems you ignore documentation and run an unsupported build system: ${codename:-(unknown)}"
|
exit_with_error "It seems you ignore documentation and run an unsupported build system: ${codename:-(unknown)}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if grep -qE "(Microsoft|WSL)" /proc/version; then
|
||||||
|
exit_with_error "Windows subsystem for Linux is not a supported build environment"
|
||||||
|
fi
|
||||||
|
|
||||||
grep -q i386 <(dpkg --print-foreign-architectures) || dpkg --add-architecture i386
|
grep -q i386 <(dpkg --print-foreign-architectures) || dpkg --add-architecture i386
|
||||||
if systemd-detect-virt -q -c; then
|
if systemd-detect-virt -q -c; then
|
||||||
display_alert "Running in container" "$(systemd-detect-virt)" "info"
|
display_alert "Running in container" "$(systemd-detect-virt)" "info"
|
||||||
|
|||||||
Reference in New Issue
Block a user