summaryrefslogtreecommitdiff
path: root/src/core/main.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/main.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/main.c')
-rw-r--r--src/core/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/main.c b/src/core/main.c
index d563ae3509..59a2be97f3 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1389,6 +1389,11 @@ int main(int argc, char *argv[]) {
/* Mount /proc, /sys and friends, so that /proc/cmdline and
* /proc/$PID/fd is available. */
if (getpid() == 1) {
+#ifdef HAVE_KMOD
+ if (!skip_setup)
+ kmod_setup();
+#endif
+
r = mount_setup(loaded_policy);
if (r < 0)
goto finish;
@@ -1553,10 +1558,6 @@ int main(int argc, char *argv[]) {
if (arg_show_status > 0 || plymouth_running())
status_welcome();
-#ifdef HAVE_KMOD
- kmod_setup();
-#endif
- mount_setup_late();
hostname_setup();
machine_id_setup(NULL);
loopback_setup();