chiark / gitweb /
mount-setup: remove mount_setup_late()
[elogind.git] / src / core / mount-setup.c
index e9a2ec68868c0346c11e37843feb7e5a58367998..df9d9da8318b8d9b83f56f8623d2811cb5179441 100644 (file)
@@ -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;