diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-05-16 05:25:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 05:25:43 -0700 |
commit | 8a1b59059162793b537801e777b73aadd8087f9e (patch) | |
tree | 75aca6ce40f214343b6fae63f5ef34019dba477c /src | |
parent | 7e0aaeb244dafd7a3ff69295b8ea60e827fe2f21 (diff) | |
parent | 84c61aea0fa067ddd5d7f2ef09c249964e41fda4 (diff) | |
download | systemd-8a1b59059162793b537801e777b73aadd8087f9e.tar.gz |
Merge pull request #27658 from poettering/base-fs-run
base-filesystem: also set up /run/ mount point if missing
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/base-filesystem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c index 8a50cc6ebb..0244c92c79 100644 --- a/src/shared/base-filesystem.c +++ b/src/shared/base-filesystem.c @@ -40,6 +40,11 @@ static const BaseFilesystem table[] = { { "proc", 0555, NULL, NULL, true }, { "sys", 0555, NULL, NULL, true }, { "dev", 0555, NULL, NULL, true }, + { "run", 0555, NULL, NULL, true }, + /* We don't add /tmp/ here for now (even though it's necessary for regular operation), because we + * want to support both cases where /tmp/ is a mount of its own (in which case we probably should set + * the mode to 1555, to indicate that noone should write to it, not even root) and when it's part of + * the rootfs (in which case we should set mode 1777), and we simply don't know what's right. */ /* Various architecture ABIs define the path to the dynamic loader via the /lib64/ subdirectory of * the root directory. When booting from an otherwise empty root file system (where only /usr/ has |