Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v4] systemd: set default.target to multi-user.target
@ 2013-04-02 12:54 Radu Moisan
  2013-04-02 13:02 ` Samuel Stirtzel
  0 siblings, 1 reply; 17+ messages in thread
From: Radu Moisan @ 2013-04-02 12:54 UTC (permalink / raw)
  To: openembedded-core

This fixes a service dependency issue;
While graphical.target is the default mode, systemd
will try to start display-manager.service which is not
available.

For xserver-nodm-init we would then have something like:
inherit update-alternatives
ALTERNATIVE_${PN} = "systemd-def-target"
ALTERNATIVE_TARGET[systemd-def-target] = "${systemd_unitdir}/system/graphical.target"
ALTERNATIVE_LINK_NAME[systemd-def-target] = "${systemd_unitdir}/system/default.target"
ALTERNATIVE_PRIORITY[systemd-def-target] ?= "10"

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
---
 meta/recipes-core/systemd/systemd_199.bb |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_199.bb b/meta/recipes-core/systemd/systemd_199.bb
index ba1d133..bf1eb39 100644
--- a/meta/recipes-core/systemd/systemd_199.bb
+++ b/meta/recipes-core/systemd/systemd_199.bb
@@ -248,6 +248,7 @@ update-alternatives --install ${base_sbindir}/halt halt ${base_bindir}/systemctl
 update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/systemctl 300
 update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300
 update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300
+update-alternatives --install ${systemd_unitdir}/system/default.target systemd-def-target ${systemd_unitdir}/system/multi-user.target 1
 }
 
 pkg_prerm_systemd () {
@@ -256,6 +257,7 @@ update-alternatives --remove halt ${base_bindir}/systemctl
 update-alternatives --remove reboot ${base_bindir}/systemctl
 update-alternatives --remove shutdown ${base_bindir}/systemctl
 update-alternatives --remove poweroff ${base_bindir}/systemctl
+update-alternatives --remove systemd-def-target ${systemd_unitdir}/system/multi-user.target
 }
 
 pkg_postinst_udev-hwdb () {
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-04-04 16:15 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-02 12:54 [PATCH v4] systemd: set default.target to multi-user.target Radu Moisan
2013-04-02 13:02 ` Samuel Stirtzel
2013-04-02 13:35   ` Radu Moisan
2013-04-02 14:15     ` Samuel Stirtzel
2013-04-03 14:15       ` Burton, Ross
2013-04-03 14:51         ` Samuel Stirtzel
2013-04-03 15:24           ` Richard Purdie
2013-04-04  6:24             ` Samuel Stirtzel
2013-04-03 15:27           ` Burton, Ross
2013-04-04  6:59             ` Samuel Stirtzel
2013-04-04  7:20               ` Martin Jansa
2013-04-04  7:37             ` Koen Kooi
2013-04-04  8:12               ` Samuel Stirtzel
2013-04-04 14:30               ` Burton, Ross
2013-04-04 15:17                 ` Andreas Müller
2013-04-04 15:20                   ` Burton, Ross
2013-04-04 15:58                 ` Koen Kooi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox