chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b259018
)
virt: add possibility to skip the check for chroot (#4374)
author
Lukáš Nykrýn
<lnykryn@redhat.com>
Sat, 15 Oct 2016 17:54:58 +0000
(19:54 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:55 +0000
(08:50 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=
1379852
src/basic/virt.c
patch
|
blob
|
history
diff --git
a/src/basic/virt.c
b/src/basic/virt.c
index 0fac74253f26d6ea5462d7f418e52028cf9631f2..3e8e1805f6a22281e766ae2d6fdcf419580a35f4 100644
(file)
--- a/
src/basic/virt.c
+++ b/
src/basic/virt.c
@@
-491,6
+491,9
@@
int detect_virtualization(void) {
int running_in_chroot(void) {
int ret;
+ if (getenv_bool("SYSTEMD_IGNORE_CHROOT") > 0)
+ return 0;
+
ret = files_same("/proc/1/root", "/");
if (ret < 0)
return ret;