diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-03-10 08:33:22 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:23:22 +0100 |
commit | 34c7fcb14d705141c71b5b63a2f044a51ffbd92b (patch) | |
tree | 6e54cf6831207e49b9199e5d34e9384f8133a865 /src/core/mount-setup.h | |
parent | 6156b4779584b4bf1dc973ce988a34a1bcae1db3 (diff) |
Add mounting of a name=elogind cgroup if no init controller is found.
This is done for systems, which init systems are no cgroup
controllers. One example is runit on Void Linux.
Diffstat (limited to 'src/core/mount-setup.h')
-rw-r--r-- | src/core/mount-setup.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/core/mount-setup.h b/src/core/mount-setup.h new file mode 100644 index 000000000..395a4923e --- /dev/null +++ b/src/core/mount-setup.h @@ -0,0 +1,32 @@ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ + +#pragma once + +/*** + This file is part of systemd. + + Copyright 2010 Lennart Poettering + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with systemd; If not, see <http://www.gnu.org/licenses/>. +***/ + +#include <stdbool.h> + +// UNNEEDED int mount_setup_early(void); +int mount_setup(bool loaded_policy); + +// UNNEEDED int mount_cgroup_controllers(char ***join_controllers); + +// UNNEEDED bool mount_point_is_api(const char *path); +// UNNEEDED bool mount_point_ignore(const char *path); |