public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH v2] systemd: set default.target to multi-user.target
@ 2013-01-25 14:59 Radu Moisan
  2013-01-25 15:04 ` Burton, Ross
  0 siblings, 1 reply; 21+ messages in thread
From: Radu Moisan @ 2013-01-25 14:59 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.

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
---
 meta/conf/distro/include/default-distrovars.inc |    3 +++
 meta/recipes-core/systemd/systemd_196.bb        |    5 +++++
 2 files changed, 8 insertions(+)

diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc
index f073547..c21d9a3 100644
--- a/meta/conf/distro/include/default-distrovars.inc
+++ b/meta/conf/distro/include/default-distrovars.inc
@@ -22,6 +22,9 @@ DISTRO_FEATURES_LIBC_class-nativesdk = "${DISTRO_FEATURES_LIBC_DEFAULT}"
 DISTRO_FEATURES_INITMAN ?= "sysvinit"
 DISTRO_FEATURES ?= "alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g x11 ${DISTRO_FEATURES_LIBC} ${DISTRO_FEATURES_INITMAN}"
 
+# "multi-user" vs "graphical"
+SYSTEMD_DEFAULT_TARGET ?= "multi-user"
+
 IMAGE_FEATURES ?= ""
 
 # This is a list of packages that are used by the build system to build the distribution, they are not
diff --git a/meta/recipes-core/systemd/systemd_196.bb b/meta/recipes-core/systemd/systemd_196.bb
index a78a8a6..4b97774 100644
--- a/meta/recipes-core/systemd/systemd_196.bb
+++ b/meta/recipes-core/systemd/systemd_196.bb
@@ -95,6 +95,11 @@ do_install() {
 	install -m 0644 ${WORKDIR}/var-run.conf ${D}${sysconfdir}/tmpfiles.d/
 
 	install -m 0644 ${WORKDIR}/00-create-volatile.conf ${D}${sysconfdir}/tmpfiles.d/
+
+
+	if [ -n ${SYSTEMD_DEFAULT_TARGET} ]; then
+		ln -s ${systemd_unitdir}/system/${SYSTEMD_DEFAULT_TARGET}.target ${D}${sysconfdir}/systemd/system/default.target
+	fi
 }
 
 python populate_packages_prepend (){
-- 
1.7.9.5




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

end of thread, other threads:[~2013-01-28 20:04 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-25 14:59 [PATCH v2] systemd: set default.target to multi-user.target Radu Moisan
2013-01-25 15:04 ` Burton, Ross
2013-01-25 15:10   ` Richard Purdie
2013-01-28  9:41     ` Radu Moisan
2013-01-25 15:12   ` Martin Jansa
2013-01-25 17:50     ` Burton, Ross
2013-01-25 17:53       ` Andreas Müller
2013-01-25 18:06         ` Martin Jansa
2013-01-25 18:35           ` Andreas Müller
2013-01-25 19:34             ` Martin Jansa
2013-01-25 20:21               ` Ross Burton
2013-01-25 20:26                 ` Martin Jansa
2013-01-25 21:09                   ` Andreas Müller
2013-01-25 23:52                     ` Richard Purdie
2013-01-28 10:44                   ` Burton, Ross
2013-01-28 11:20                     ` Otavio Salvador
2013-01-28 11:48                     ` Andreas Müller
2013-01-28 11:50                       ` Burton, Ross
2013-01-28 18:27                     ` Martin Jansa
2013-01-28 19:27                       ` Burton, Ross
2013-01-28 19:48                         ` Martin Jansa

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