systemd: Make it work for dora and master

systemd-compat-units does not install any files anymore and
the machineid and other scripts are gone. We want to continue
to install the alignment file though.

This has not been tested on dora systemd yet.
neels/inmarsat
Holger Hans Peter Freyther 9 years ago
parent 050a39766e
commit c5a267a946

@ -0,0 +1,6 @@
# In dora a SRC_URI = "file://*.service" is done and that doesn't work
# when playing with the FILESPATH
SRC_URI = "\
file://machineid.service \
file://run-postinsts.service \
"

@ -5,11 +5,8 @@ SYSTEMD_DISABLED_SYSV_SERVICES_remove = "networking"
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
SRC_URI = "\
file://machineid.service \
file://run-postinsts.service \
file://alignment.service"
SRC_URI += "file://alignment.service"
do_install_append() {
install -d ${D}${systemd_unitdir}/system/basic.target.wants
@ -19,3 +16,5 @@ do_install_append() {
ln -sf ../alignment.service ${D}${systemd_unitdir}/system/basic.target.wants/
ln -sf ../alignment.service ${D}${systemd_unitdir}/system/sysinit.target.wants/
}
FILES_${PN} = "${systemd_unitdir}/system ${bindir}"

@ -0,0 +1,3 @@
SRC_URI += " \
file://0001-RFC-fsck-Allow-to-specify-the-fsck-repair-option-in-.patch \
"

@ -1,11 +1,10 @@
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
PRINC="23"
PRINC="24"
SRC_URI += "file://journald.conf \
file://0001-Feature-switch-ListenDatagram-from-run-systemd-journ.patch \
file://0001-RFC-fsck-Allow-to-specify-the-fsck-repair-option-in-.patch \
"
SRC_URI_append_sysmobts-v1 = " file://system.conf"

@ -1,2 +1,3 @@
require recipes-fixes/systemd/${PN}_dora.inc
require recipes-fixes/systemd/${PN}_sysmocom.inc

@ -1 +1,2 @@
require recipes-fixes/${PN}/${PN}_sysmocom-${PV}.inc
require recipes-fixes/${PN}/${PN}_sysmocom.inc

Loading…
Cancel
Save