]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: turn on MountAPIVFS=true when RootImage or RootDirectory are specified
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 22 Sep 2020 12:49:49 +0000 (14:49 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 24 Sep 2020 08:03:18 +0000 (10:03 +0200)
commit6119878480aab4c10ad6af33deab221778683807
treecfb2725b46005a241af237e6b136f3d57f933963
parent5e98086d1629f5c5b73645ba2568de4b09b7d958
core: turn on MountAPIVFS=true when RootImage or RootDirectory are specified

Lennart wanted to do this back in
https://github.com/systemd/systemd/commit/01c33c1effaa2406ff7d2a7de08a3ee87aec9fc8.
For better or worse, this wasn't done because I thought that turning on MountAPIVFS
is a compat break for RootDirectory and people might be negatively surprised by it.
Without this, search for binaries doesn't work (access_fd() requires /proc).
Let's turn it on, but still allow overriding to "no".

When RootDirectory=/, MountAPIVFS=1 doesn't work. This might be a buglet on its
own, but this patch doesn't change the situation.
src/core/execute.c