mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
main: introduce $SYSTEMD_SKIP_API_MOUNTS to disable mounting of API FS
This commit is contained in:
parent
085b94eec3
commit
ca326f6f2d
@ -849,7 +849,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
/* Mount /proc, /sys and friends, so that /proc/cmdline and
|
||||
* /proc/$PID/fd is available. */
|
||||
if (geteuid() == 0)
|
||||
if (geteuid() == 0 && !getenv("SYSTEMD_SKIP_API_MOUNTS"))
|
||||
if (mount_setup() < 0)
|
||||
goto finish;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user