mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
gdm: do not hardcode /usr/sbin
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
4ac49b2ac2
commit
fb0b27dd63
@@ -3,7 +3,7 @@ Description=Gnome Display Manager
|
||||
After=systemd-user-sessions.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/gdm -nodaemon
|
||||
ExecStart=%sbindir%/gdm -nodaemon
|
||||
StandardOutput=syslog
|
||||
|
||||
[Install]
|
||||
@@ -5,9 +5,14 @@ PRINC := "${@int(PRINC) + 3}"
|
||||
|
||||
inherit systemd
|
||||
|
||||
SRC_URI += " \
|
||||
file://gdm.service \
|
||||
"
|
||||
SRC_URI += "file://gdm.service.in"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
sed -e 's,%sbindir%,${sbindir},g' \
|
||||
< ${WORKDIR}/gdm.service.in \
|
||||
> ${D}${systemd_unitdir}/system/gdm.service
|
||||
}
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||
SYSTEMD_SERVICE = "gdm.service"
|
||||
|
||||
Reference in New Issue
Block a user