From f9214ee18f15c2ff3269a5803ef6fbc05da218e7 Mon Sep 17 00:00:00 2001 From: xSmurf Date: Tue, 21 Jul 2015 00:01:45 +0000 Subject: [PATCH] Fix always set dbus machine-id in case program launches it --- oz-init/init.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/oz-init/init.go b/oz-init/init.go index f35923e..7e10912 100644 --- a/oz-init/init.go +++ b/oz-init/init.go @@ -180,11 +180,9 @@ func (st *initState) runInit() { } st.log.Info("Hostname set to (%s.local)", st.profile.Name) - if st.needsDbus() { - if err := st.setupDbus(); err != nil { - st.log.Error("Unable to setup dbus: %v", err) - os.Exit(1) - } + if err := st.setupDbus(); err != nil { + st.log.Error("Unable to setup dbus: %v", err) + os.Exit(1) } oz.ReapChildProcs(st.log, st.handleChildExit)