pid1: ignore whole /run/host hierarchy
authorLennart Poettering <lennart@poettering.net>
Thu, 15 Oct 2020 13:25:56 +0000 (15:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 15 Oct 2020 15:16:36 +0000 (17:16 +0200)
commit6f997852c8830ca073c55241b0068ebbf1f94a72
tree4b879932c0878b5f79ab2d89c55e4181c80d69f6
parent69c0807432fa4fbfbf507a53872664cd26715559
pid1: ignore whole /run/host hierarchy

Let's mark the whole /run/host hierarchy as something to ignore by PID 1
for generation of .mount units, i.e. consider it as "extrinsic".

By unifying container mgr supplied resources in one dir it's also easy
to exclude the whole lot from PID1's management inside the container.
This is the right thing to do, since from the payload's PoV these mounts
are just API and not manipulatable as they are established, managed and
owned by the container manager, not the payload.

(While we are it, also add the boot ID mount to the existing list, as
nspawn and other container managers overmount that too, typically, and
it is thus owned by the container manager and not the payload
typically.)
src/core/mount-setup.c