summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-09 18:02:38 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-09 18:02:38 +0200
commitaf5bc85dc1297079edc9890861aaa38de0ec30df (patch)
tree5a96f14d59eed59090f16826d84f4f9f1e501633 /main.c
parentf2b4af1cd4112df6ce56f8fc1e677639935e3d0e (diff)
loopback: configure lo device on bootup
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 0128787d14..aa58040ff5 100644
--- a/main.c
+++ b/main.c
@@ -36,6 +36,7 @@
#include "log.h"
#include "mount-setup.h"
#include "hostname-setup.h"
+#include "loopback-setup.h"
#include "load-fragment.h"
#include "fdset.h"
@@ -641,8 +642,10 @@ int main(int argc, char *argv[]) {
log_debug("systemd running in %s mode.", manager_running_as_to_string(running_as));
- if (running_as == MANAGER_INIT)
+ if (running_as == MANAGER_INIT) {
hostname_setup();
+ loopback_setup();
+ }
if ((r = manager_new(running_as, confirm_spawn, &m)) < 0) {
log_error("Failed to allocate manager object: %s", strerror(-r));