ALIAS
cover ALIAS
This patch series takes ALIAS tag into account when setting up rootfs and as 'example' fixes systemd's search for display-manager.service when using gdm. The first patch makes [1] work and needs [2] and [3] to apply. During tests also [4] was applied. Buildhistory results for an image using lxdm (will be sent when all issues are fixed) were:
$ git show commit 3fe6b508a3a461fbf8d7682e6d170a55d301c6c0 Author: buildhistory <buildhistory@angstrom> Date: Tue Aug 7 23:51:38 2012 +0200
images: Build Angstrom v2012.08-core of angstrom v2012.08-core for machine overo on localhost.localdomain
images/overo/eglibc/xfce-full-image/files-in-image.txt +3 -1
@@ -558,6 +558,8 @@ drwxr-xr-x root root 4096 ./etc/systemd/system drwxr-xr-x root root 4096 ./etc/systemd/system/basic.target.wants lrwxrwxrwx root root 37 ./etc/systemd/system/basic.target.wants/timestamp.service -> /lib/systemd/system/timestamp.service lrwxrwxrwx root root 9 ./etc/systemd/system/busybox-udhcpc.service -> /dev/null +lrwxrwxrwx root root 42 ./etc/systemd/system/dbus-org.freedesktop.NetworkManager.service -> /lib/systemd/system/NetworkManager.service +lrwxrwxrwx root root 32 ./etc/systemd/system/display-manager.service -> /lib/systemd/system/lxdm.service lrwxrwxrwx root root 9 ./etc/systemd/system/dnsmasq.service -> /dev/null drwxr-xr-x root root 4096 ./etc/systemd/system/getty.target.wants lrwxrwxrwx root root 34 ./etc/systemd/system/getty.target.wants/[email protected] -> /lib/systemd/system/[email protected]
@@ -576,7 +578,7 @@ drwxr-xr-x root root 4096 ./etc/systemd/system/sockets.target. lrwxrwxrwx root root 35 ./etc/systemd/system/sockets.target.wants/dropbear.socket -> /lib/systemd/system/dropbear.socket drwxr-xr-x root root 4096 ./etc/systemd/system/sysinit.target.wants lrwxrwxrwx root root 9 ./etc/systemd/system/syslog.busybox.service -> /dev/null -lrwxrwxrwx root root 9 ./etc/systemd/system/syslog.service -> /dev/null +lrwxrwxrwx root root 42 ./etc/systemd/system/syslog.service -> /lib/systemd/system/busybox-syslog.service drwxr-xr-x root root 4096 ./etc/systemd/user -rw-r--r-- root root 487 ./etc/systemd/user.conf drwxr-xr-x root root 4096 ./etc/terminfo
[1] http://patches.openembedded.org/patch/33791/
[2] http://patches.openembedded.org/patch/33999/
[3] http://patches.openembedded.org/patch/33997/
[4] http://patches.openembedded.org/patch/33793/
Andreas Müller (2):
systemd-systemctl-native: handle ALIAS tag
gdm: replace 'WantedBy=graphical.target' by
'Alias=display-manager.service'
.../meta-gnome/recipes-gnome/gdm/gdm/gdm.service | 2 +- .../recipes-gnome/gdm/gdm_2.32.2.bbappend | 2 +- .../systemd/systemd-systemctl-native.bb | 2 +- .../systemd/systemd-systemctl-native/systemctl | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.4.4
PATCH 1/2 systemd-systemctl-native: handle ALIAS tag
--- .../systemd/systemd-systemctl-native.bb | 2 +- .../systemd/systemd-systemctl-native/systemctl | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletions(-)
meta-systemd/recipes-core/systemd/systemd-systemctl-native.bb +1 -1
@@ -3,7 +3,7 @@ DESCRIPTION = "Wrapper to enable of systemd services" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" -PR = "r4" +PR = "r5" inherit native
meta-systemd/recipes-core/systemd/systemd-systemctl-native/systemctl +17 -0
@@ -96,6 +96,23 @@ for service in $services; do fi done + # create the required symbolic 'Alias' links + alias=$(grep Alias $ROOT/$service_file \ + | sed 's,Alias=,,g' \ + | tr ',' '\n' \ + | grep '\.service$') + + for r in $alias; do + if [ "$action" = "enable" ]; then + mkdir -p $ROOT/etc/systemd/system + ln -s $service_file $ROOT/etc/systemd/system/$r + echo "Enabled $service for $alias." + else + rm -f $ROOT/etc/systemd/system/$r + echo "Disabled $service for $alias." + fi + done + # call us for the other required scripts also=$(grep Also $ROOT/$service_file \ | sed 's,Also=,,g' \
Signature · 1 line
1.7.4.4
PATCH 2/2 gdm: replace 'WantedBy=graphical.target' by 'Alias=display-manager.service'
In reply to Andreas MüllerFound 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
--- .../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(-)
meta-systemd/meta-gnome/recipes-gnome/gdm/gdm/gdm.service +1 -1
@@ -8,4 +8,4 @@ ExecStart=/usr/sbin/gdm -nodaemon StandardOutput=syslog [Install] -WantedBy=graphical.target +Alias=display-manager.service
meta-systemd/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bbappend +1 -1
@@ -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
Signature · 1 line
1.7.4.4