mirror of
https://github.com/systemd/systemd
synced 2025-11-08 03:14:45 +01:00
Compare commits
3 Commits
4c39820562
...
3c2a50c945
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c2a50c945 | ||
|
|
858b64593a | ||
|
|
a2f838d590 |
@ -7,7 +7,7 @@ System and Service Manager
|
||||
[](https://semaphoreci.com/systemd/systemd)<br/>
|
||||
[](https://scan.coverity.com/projects/350)<br/>
|
||||
[](https://app.fuzzit.dev/orgs/systemd/dashboard)<br/>
|
||||
[](https://oss-fuzz-build-logs.storage.googleapis.com/index.html)<br/>
|
||||
[](https://oss-fuzz-build-logs.storage.googleapis.com/index.html#systemd)<br/>
|
||||
[](https://bestpractices.coreinfrastructure.org/projects/1369)<br/>
|
||||
[](https://travis-ci.org/systemd/systemd)<br/>
|
||||
[](https://lgtm.com/projects/g/systemd/systemd/context:cpp)<br/>
|
||||
|
||||
@ -5,7 +5,7 @@ set -eux
|
||||
# default to Debian testing
|
||||
DISTRO=${DISTRO:-debian}
|
||||
RELEASE=${RELEASE:-buster}
|
||||
BRANCH=${BRANCH:-debian/master}
|
||||
BRANCH=${BRANCH:-upstream-ci}
|
||||
ARCH=${ARCH:-amd64}
|
||||
CONTAINER=${RELEASE}-${ARCH}
|
||||
CACHE_DIR=${SEMAPHORE_CACHE_DIR:=/tmp}
|
||||
|
||||
@ -462,13 +462,14 @@ int detect_container(void) {
|
||||
goto finish;
|
||||
}
|
||||
|
||||
/* "Official" way of detecting WSL https://github.com/Microsoft/WSL/issues/423#issuecomment-221627364 */
|
||||
/* "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 ;(
|
||||
*/
|
||||
r = read_one_line_file("/proc/sys/kernel/osrelease", &o);
|
||||
if (r >= 0) {
|
||||
if (strstr(o, "Microsoft") || strstr(o, "WSL")) {
|
||||
r = VIRTUALIZATION_WSL;
|
||||
goto finish;
|
||||
}
|
||||
if (r >= 0 &&
|
||||
(strstr(o, "Microsoft") || strstr(o, "microsoft") || strstr(o, "WSL"))) {
|
||||
r = VIRTUALIZATION_WSL;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (getpid_cached() == 1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user