summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/basic/virt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/basic/virt.c b/src/basic/virt.c
index f21a36c6fe..c6bff6b16e 100644
--- a/src/basic/virt.c
+++ b/src/basic/virt.c
@@ -464,12 +464,10 @@ int detect_container(void) {
goto finish;
}
- /* "Official" way of detecting WSL https://github.com/Microsoft/WSL/issues/423#issuecomment-221627364,
- * ... and a working one, since the official one doesn't actually work ;(
- */
+ /* "Official" way of detecting WSL https://github.com/Microsoft/WSL/issues/423#issuecomment-221627364 */
r = read_one_line_file("/proc/sys/kernel/osrelease", &o);
if (r >= 0 &&
- (strstr(o, "Microsoft") || strstr(o, "microsoft") || strstr(o, "WSL"))) {
+ (strstr(o, "Microsoft") || strstr(o, "WSL"))) {
r = VIRTUALIZATION_WSL;
goto finish;
}