-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
namespace: if RootDirectory= is used, mount /proc, /sys, /dev if not …
…configured otherwise If the admin didn't explicitly mount something to /proc, /sys and /dev, be nice and mount the right file system there for him. This should make RootDirectory= easier to use. In order to minimize churn this will mount these dirs only if there's nothing mounted at these dirs yet, which may be done either externally, or via systemd's own settings. This slightly alters the BindMount structure, adding a new read_only bit to it. This is used when dropping duplicate mounts: whenever we encounter a duplicate mount, and the one we drop is a read-only mount, then also make the one we keep read-only. This effectively means we need to be able to combine the "read-only" flag with any kind of entry.
- Loading branch information
1 parent
7d583ec
commit 01c33c1
Showing
1 changed file
with
107 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters