]> git.ipfire.org Git - thirdparty/systemd.git/commit
detect-virt: also detect "microsoft" as WSL
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 3 Apr 2020 17:38:50 +0000 (19:38 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 4 Apr 2020 14:52:32 +0000 (16:52 +0200)
commita2f838d59075a49b012f9b7056664f7ffeed44d2
treebbb385740db164c6413cc6136ab461057c6df88b
parent4c39820562e562b98c2fd269ad3a4f84949d6059
detect-virt: also detect "microsoft" as WSL

From https://github.com/microsoft/WSL/issues/423#issuecomment-221627364:
> it's unlikely we'll change it to something that doesn't contain "Microsoft"
> or "WSL".

... but well, it happened. If they change it incompatibly w/o adding an stable
detection mechanism, I think we should not add yet another detection method.
But adding a different casing of "microsoft" is not a very big step, so let's
do that.

Follow-up for #11932.
src/basic/virt.c