summaryrefslogtreecommitdiff
path: root/src/core/mount-setup.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2014-11-14 15:18:56 +0100
committerDaniel Mack <daniel@zonque.org>2014-11-14 15:18:56 +0100
commit2e75e2a8f56d0d5340dc9fb6fed1f6c4b37c495f (patch)
tree52604e8fa3ca0c4229d526a9e8fb4b04bf65cfa6 /src/core/mount-setup.c
parent56c8b52d4dc652bf15aa8c2ef44d35b166b419c1 (diff)
mount-setup: remove mount_setup_late()
Turns out we can just do kmod_setup() earlier, before we do mount_setup(), so there's no need for mount_setup_late() anymore. Instead, put kdbusfs in mount_table[].
Diffstat (limited to 'src/core/mount-setup.c')
-rw-r--r--src/core/mount-setup.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c
index e9a2ec6886..df9d9da831 100644
--- a/src/core/mount-setup.c
+++ b/src/core/mount-setup.c
@@ -108,9 +108,6 @@ static const MountPoint mount_table[] = {
{ "efivarfs", "/sys/firmware/efi/efivars", "efivarfs", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
is_efi_boot, MNT_NONE },
#endif
-};
-
-static const MountPoint mount_table_late[] = {
#ifdef ENABLE_KDBUS
{ "kdbusfs", "/sys/fs/kdbus", "kdbusfs", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
NULL, MNT_IN_CONTAINER },
@@ -228,21 +225,6 @@ int mount_setup_early(void) {
return r;
}
-int mount_setup_late(void) {
- unsigned i;
- int r = 0;
-
- for (i = 0; i < ELEMENTSOF(mount_table_late); i ++) {
- int j;
-
- j = mount_one(mount_table_late + i, false);
- if (r == 0)
- r = j;
- }
-
- return r;
-}
-
int mount_cgroup_controllers(char ***join_controllers) {
_cleanup_set_free_free_ Set *controllers = NULL;
_cleanup_fclose_ FILE *f;