mirror of
https://github.com/systemd/systemd
synced 2025-11-10 12:24:45 +01:00
Compare commits
No commits in common. "3c2a50c945394ccced979da71d9b0bb17f244abd" and "4c39820562e562b98c2fd269ad3a4f84949d6059" have entirely different histories.
3c2a50c945
...
4c39820562
@ -7,7 +7,7 @@ System and Service Manager
|
|||||||
[](https://semaphoreci.com/systemd/systemd)<br/>
|
[](https://semaphoreci.com/systemd/systemd)<br/>
|
||||||
[](https://scan.coverity.com/projects/350)<br/>
|
[](https://scan.coverity.com/projects/350)<br/>
|
||||||
[](https://app.fuzzit.dev/orgs/systemd/dashboard)<br/>
|
[](https://app.fuzzit.dev/orgs/systemd/dashboard)<br/>
|
||||||
[](https://oss-fuzz-build-logs.storage.googleapis.com/index.html#systemd)<br/>
|
[](https://oss-fuzz-build-logs.storage.googleapis.com/index.html)<br/>
|
||||||
[](https://bestpractices.coreinfrastructure.org/projects/1369)<br/>
|
[](https://bestpractices.coreinfrastructure.org/projects/1369)<br/>
|
||||||
[](https://travis-ci.org/systemd/systemd)<br/>
|
[](https://travis-ci.org/systemd/systemd)<br/>
|
||||||
[](https://lgtm.com/projects/g/systemd/systemd/context:cpp)<br/>
|
[](https://lgtm.com/projects/g/systemd/systemd/context:cpp)<br/>
|
||||||
|
|||||||
@ -5,7 +5,7 @@ set -eux
|
|||||||
# default to Debian testing
|
# default to Debian testing
|
||||||
DISTRO=${DISTRO:-debian}
|
DISTRO=${DISTRO:-debian}
|
||||||
RELEASE=${RELEASE:-buster}
|
RELEASE=${RELEASE:-buster}
|
||||||
BRANCH=${BRANCH:-upstream-ci}
|
BRANCH=${BRANCH:-debian/master}
|
||||||
ARCH=${ARCH:-amd64}
|
ARCH=${ARCH:-amd64}
|
||||||
CONTAINER=${RELEASE}-${ARCH}
|
CONTAINER=${RELEASE}-${ARCH}
|
||||||
CACHE_DIR=${SEMAPHORE_CACHE_DIR:=/tmp}
|
CACHE_DIR=${SEMAPHORE_CACHE_DIR:=/tmp}
|
||||||
|
|||||||
@ -462,15 +462,14 @@ int detect_container(void) {
|
|||||||
goto finish;
|
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);
|
r = read_one_line_file("/proc/sys/kernel/osrelease", &o);
|
||||||
if (r >= 0 &&
|
if (r >= 0) {
|
||||||
(strstr(o, "Microsoft") || strstr(o, "microsoft") || strstr(o, "WSL"))) {
|
if (strstr(o, "Microsoft") || strstr(o, "WSL")) {
|
||||||
r = VIRTUALIZATION_WSL;
|
r = VIRTUALIZATION_WSL;
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (getpid_cached() == 1) {
|
if (getpid_cached() == 1) {
|
||||||
/* If we are PID 1 we can just check our own environment variable, and that's authoritative.
|
/* If we are PID 1 we can just check our own environment variable, and that's authoritative.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user