Patchwork [meta-systemd] gdm: replace 'WantedBy=graphical.target' by 'Alias=display-manager.service'

login
register
mail settings
Submitter Andreas Müller
Date Aug. 3, 2012, 12:30 p.m.
Message ID <1343997020-11559-1-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/33741/
State Accepted
Commit a78056c60ee97c43cb212b95b0cd9b686d5fedc5
Headers show

Comments

Andreas Müller - Aug. 3, 2012, 12:30 p.m.
Found at lxdm. Error message was there
| systemd[1]: Cannot add dependency job for unit display-manager.service ...

Inspired by [1]

[1] https://bbs.archlinux.org/viewtopic.php?pid=1131267

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 .../meta-gnome/recipes-gnome/gdm/gdm/gdm.service   |    2 +-
 .../recipes-gnome/gdm/gdm_2.32.2.bbappend          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Andreas Müller - Aug. 6, 2012, 10:34 a.m.
On Fri, Aug 3, 2012 at 2:30 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> Found at lxdm. Error message was there
> | systemd[1]: Cannot add dependency job for unit display-manager.service ...
>
> Inspired by [1]
>
> [1] https://bbs.archlinux.org/viewtopic.php?pid=1131267
>
> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
> ---
>  .../meta-gnome/recipes-gnome/gdm/gdm/gdm.service   |    2 +-
>  .../recipes-gnome/gdm/gdm_2.32.2.bbappend          |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm/gdm.service b/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm/gdm.service
> index 72a56f9..adfc565 100644
> --- a/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm/gdm.service
> +++ b/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm/gdm.service
> @@ -8,4 +8,4 @@ ExecStart=/usr/sbin/gdm -nodaemon
>  StandardOutput=syslog
>
>  [Install]
> -WantedBy=graphical.target
> +Alias=display-manager.service
> diff --git a/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bbappend b/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bbappend
> index 7308346..963e3e8 100644
> --- a/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bbappend
> +++ b/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bbappend
> @@ -1,7 +1,7 @@
>  # look for files in the layer first
>  FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> -PRINC := "${@int(PRINC) + 1}"
> +PRINC := "${@int(PRINC) + 2}"
>
>  inherit systemd
>
> --
> 1.7.6.5
>
Please ignore this patch. It needs some rework on systemctl-native.

Andreas

Patch

diff --git a/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm/gdm.service b/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm/gdm.service
index 72a56f9..adfc565 100644
--- a/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm/gdm.service
+++ b/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm/gdm.service
@@ -8,4 +8,4 @@  ExecStart=/usr/sbin/gdm -nodaemon
 StandardOutput=syslog
 
 [Install]
-WantedBy=graphical.target
+Alias=display-manager.service
diff --git a/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bbappend b/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bbappend
index 7308346..963e3e8 100644
--- a/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bbappend
+++ b/meta-systemd/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bbappend
@@ -1,7 +1,7 @@ 
 # look for files in the layer first
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PRINC := "${@int(PRINC) + 1}"
+PRINC := "${@int(PRINC) + 2}"
 
 inherit systemd