]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/virt.c
Revert "util: Fine tune running_in_chroot() a bit" (#5506)
authorLennart Poettering <lennart@poettering.net>
Wed, 1 Mar 2017 20:22:02 +0000 (21:22 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Mar 2017 20:22:02 +0000 (15:22 -0500)
commitd6d0473dc9688dbfcd9e9b6ed005de26dd1131b7
tree2a21ff05389668c0276eb59f6e6a68f1f6513717
parentb7a09e35ccb5eaaf8fba583ffbae7caa2b8a16af
Revert "util: Fine tune running_in_chroot() a bit" (#5506)

This reverts commit 295ee9845c801300298d01256eb5a9e3ff117ae0.

Let'd revert this for now, see #5446 for discussions.

We want systemd-detect-virt --chroot to return true for all chroot-like stuff, for
example mock environments which have use a mount namespace. The downside
of this revert that systemctl will not work from our own namespaced services, anything
with RootDirectory=/RootImage= set.
src/basic/virt.c