mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 17:19:23 +00:00
systemd-serialgetty: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
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
815124f28e
commit
0658069375
@@ -26,12 +26,12 @@ def get_console(d):
|
||||
do_install() {
|
||||
if [ ! ${@get_baudrate(d)} = "" ]; then
|
||||
sed -i -e s/\@BAUDRATE\@/${@get_baudrate(d)}/g ${WORKDIR}/serial-getty@.service
|
||||
install -d ${D}${base_libdir}/systemd/system/
|
||||
install -d ${D}${systemd_unitdir}/system/
|
||||
install -d ${D}${sysconfdir}/systemd/system/getty.target.wants/
|
||||
install ${WORKDIR}/serial-getty@.service ${D}${base_libdir}/systemd/system/
|
||||
install ${WORKDIR}/serial-getty@.service ${D}${systemd_unitdir}/system/
|
||||
|
||||
# enable the service
|
||||
ln -sf ${base_libdir}/systemd/system/serial-getty@.service \
|
||||
ln -sf ${systemd_unitdir}/system/serial-getty@.service \
|
||||
${D}${sysconfdir}/systemd/system/getty.target.wants/serial-getty@${@get_console(d)}.service
|
||||
fi
|
||||
}
|
||||
@@ -42,5 +42,5 @@ RRECOMMENDS_${PN} = ""
|
||||
RDEPENDS_${PN} = "systemd"
|
||||
|
||||
# This is a machine specific file
|
||||
FILES_${PN} = "${base_libdir}/systemd/system/serial-getty@.service ${sysconfdir}"
|
||||
FILES_${PN} = "${systemd_unitdir}/system/serial-getty@.service ${sysconfdir}"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
Reference in New Issue
Block a user