summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2018-11-25 20:45:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-08 20:14:42 +0000
commite92d3cfbb47a9fb671752e0340117c1730cfaa50 (patch)
tree71a5e05bf9521dfd37bc0e4ceee99a18c959f2d0 /meta/recipes-core
parentb68c73127e2d2284a29479c0ebada32fedcb1645 (diff)
downloadpoky-e92d3cfbb47a9fb671752e0340117c1730cfaa50.tar.gz
systemd: fix PN-container package splitting
- Fix package splitting for services installed with systemd-container. Some files have been installed with systemd package instead of systemd-container package. (*.service, *.socket, *.html...) - Split journal-upload, journal-remote, journal-gatewayd into separate packages. These services are not strictly related to nspawn containers. Remote logging is now possible without installing all the container stuff. - systemd-container package rrecommends journal-upload, journal- remote, journal-gatewayd packages. (From OE-Core rev: d31ff84a5f4723700ed48fd14ace81d3c707065e) (From OE-Core rev: 44f552c93f7053794289c0bc8cf1defadb8a6a06) Signed-off-by: Adrian Freihofer <adrian.freihofer@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/systemd/systemd_239.bb61
1 files changed, 53 insertions, 8 deletions
diff --git a/meta/recipes-core/systemd/systemd_239.bb b/meta/recipes-core/systemd/systemd_239.bb
index 3dbeaac342..ed10f634b9 100644
--- a/meta/recipes-core/systemd/systemd_239.bb
+++ b/meta/recipes-core/systemd/systemd_239.bb
@@ -239,6 +239,9 @@ do_install() {
239 # Delete journal README, as log can be symlinked inside volatile. 239 # Delete journal README, as log can be symlinked inside volatile.
240 rm -f ${D}/${localstatedir}/log/README 240 rm -f ${D}/${localstatedir}/log/README
241 241
242 # journal-remote creates this at start
243 rm -rf ${D}/${localstatedir}/log/journal/remote
244
242 install -d ${D}${systemd_unitdir}/system/graphical.target.wants 245 install -d ${D}${systemd_unitdir}/system/graphical.target.wants
243 install -d ${D}${systemd_unitdir}/system/multi-user.target.wants 246 install -d ${D}${systemd_unitdir}/system/multi-user.target.wants
244 install -d ${D}${systemd_unitdir}/system/poweroff.target.wants 247 install -d ${D}${systemd_unitdir}/system/poweroff.target.wants
@@ -309,19 +312,35 @@ PACKAGES =+ "\
309 ${PN}-zsh-completion \ 312 ${PN}-zsh-completion \
310 ${PN}-xorg-xinitrc \ 313 ${PN}-xorg-xinitrc \
311 ${PN}-container \ 314 ${PN}-container \
315 ${PN}-journal-gatewayd \
316 ${PN}-journal-upload \
317 ${PN}-journal-remote \
312 ${PN}-extra-utils \ 318 ${PN}-extra-utils \
313" 319"
314 320
315SUMMARY_${PN}-container = "Tools for containers and VMs" 321SUMMARY_${PN}-container = "Tools for containers and VMs"
316DESCRIPTION_${PN}-container = "Systemd tools to spawn and manage containers and virtual machines." 322DESCRIPTION_${PN}-container = "Systemd tools to spawn and manage containers and virtual machines."
317 323
318SYSTEMD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt', '${PN}-binfmt', '', d)}" 324SUMMARY_${PN}-journal-gatewayd = "HTTP server for journal events"
325DESCRIPTION_${PN}-journal-gatewayd = "systemd-journal-gatewayd serves journal events over the network. Clients must connect using HTTP. The server listens on port 19531 by default."
326
327SUMMARY_${PN}-journal-upload = "Send journal messages over the network"
328DESCRIPTION_${PN}-journal-upload = "systemd-journal-upload uploads journal entries to a specified URL."
329
330SUMMARY_${PN}-journal-remote = "Receive journal messages over the network"
331DESCRIPTION_${PN}-journal-remote = "systemd-journal-remote is a command to receive serialized journal events and store them to journal files."
332
333SYSTEMD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt', '${PN}-binfmt', '', d)} \
334 ${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '${PN}-journal-gatewayd', '', d)} \
335 ${@bb.utils.contains('PACKAGECONFIG', 'journal-upload', '${PN}-journal-upload', '', d)} \
336 ${@bb.utils.contains('PACKAGECONFIG', '', '${PN}-journal-remote', '', d)} \
337"
319SYSTEMD_SERVICE_${PN}-binfmt = "systemd-binfmt.service" 338SYSTEMD_SERVICE_${PN}-binfmt = "systemd-binfmt.service"
320 339
321USERADD_PACKAGES = "${PN} ${PN}-extra-utils" 340USERADD_PACKAGES = "${PN} ${PN}-extra-utils ${PN}-journal-gateway ${PN}-journal-upload ${PN}-journal-remote"
322USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '--system -d / -M --shell /bin/nologin systemd-journal-gateway;', '', d)}" 341USERADD_PARAM_${PN}-journal-gateway += "${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '--system -d / -M --shell /bin/nologin systemd-journal-gateway;', '', d)}"
323USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '--system -d / -M --shell /bin/nologin systemd-journal-remote;', '', d)}" 342USERADD_PARAM_${PN}-journal-remote += "${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '--system -d / -M --shell /bin/nologin systemd-journal-remote;', '', d)}"
324USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'journal-upload', '--system -d / -M --shell /bin/nologin systemd-journal-upload;', '', d)}" 343USERADD_PARAM_${PN}-journal-upload += "${@bb.utils.contains('PACKAGECONFIG', 'journal-upload', '--system -d / -M --shell /bin/nologin systemd-journal-upload;', '', d)}"
325USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'timesyncd', '--system -d / -M --shell /bin/nologin systemd-timesync;', '', d)}" 344USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'timesyncd', '--system -d / -M --shell /bin/nologin systemd-timesync;', '', d)}"
326USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'networkd', '--system -d / -M --shell /bin/nologin systemd-network;', '', d)}" 345USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'networkd', '--system -d / -M --shell /bin/nologin systemd-network;', '', d)}"
327USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'coredump', '--system -d / -M --shell /bin/nologin systemd-coredump;', '', d)}" 346USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'coredump', '--system -d / -M --shell /bin/nologin systemd-coredump;', '', d)}"
@@ -362,6 +381,29 @@ RRECOMMENDS_${PN}-binfmt = "kernel-module-binfmt-misc"
362 381
363RRECOMMENDS_${PN}-vconsole-setup = "kbd kbd-consolefonts kbd-keymaps" 382RRECOMMENDS_${PN}-vconsole-setup = "kbd kbd-consolefonts kbd-keymaps"
364 383
384
385FILES_${PN}-journal-gatewayd = "${rootlibexecdir}/systemd/systemd-journal-gatewayd \
386 ${systemd_system_unitdir}/systemd-journal-gatewayd.service \
387 ${systemd_system_unitdir}/systemd-journal-gatewayd.socket \
388 ${systemd_system_unitdir}/sockets.target.wants/systemd-journal-gatewayd.socket \
389 ${datadir}/systemd/gatewayd/browse.html \
390 "
391SYSTEMD_SERVICE_${PN}-journal-gatewayd = "systemd-journal-gatewayd.socket"
392
393FILES_${PN}-journal-upload = "${rootlibexecdir}/systemd/systemd-journal-upload \
394 ${systemd_system_unitdir}/systemd-journal-upload.service \
395 ${sysconfdir}/systemd/journal-upload.conf \
396 "
397SYSTEMD_SERVICE_${PN}-journal-upload = "systemd-journal-upload.service"
398
399FILES_${PN}-journal-remote = "${rootlibexecdir}/systemd/systemd-journal-remote \
400 ${sysconfdir}/systemd/journal-remote.conf \
401 ${systemd_system_unitdir}/systemd-journal-remote.service \
402 ${systemd_system_unitdir}/systemd-journal-remote.socket \
403 "
404SYSTEMD_SERVICE_${PN}-remote = "systemd-journal-remote.socket"
405
406
365FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.conf \ 407FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.conf \
366 ${sysconfdir}/dbus-1/system.d/org.freedesktop.machine1.conf \ 408 ${sysconfdir}/dbus-1/system.d/org.freedesktop.machine1.conf \
367 ${base_bindir}/machinectl \ 409 ${base_bindir}/machinectl \
@@ -380,9 +422,6 @@ FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.c
380 ${systemd_system_unitdir}/var-lib-machines.mount \ 422 ${systemd_system_unitdir}/var-lib-machines.mount \
381 ${rootlibexecdir}/systemd/systemd-import \ 423 ${rootlibexecdir}/systemd/systemd-import \
382 ${rootlibexecdir}/systemd/systemd-importd \ 424 ${rootlibexecdir}/systemd/systemd-importd \
383 ${rootlibexecdir}/systemd/systemd-journal-gatewayd \
384 ${rootlibexecdir}/systemd/systemd-journal-remote \
385 ${rootlibexecdir}/systemd/systemd-journal-upload \
386 ${rootlibexecdir}/systemd/systemd-machined \ 425 ${rootlibexecdir}/systemd/systemd-machined \
387 ${rootlibexecdir}/systemd/systemd-pull \ 426 ${rootlibexecdir}/systemd/systemd-pull \
388 ${exec_prefix}/lib/tmpfiles.d/systemd-nspawn.conf \ 427 ${exec_prefix}/lib/tmpfiles.d/systemd-nspawn.conf \
@@ -396,6 +435,12 @@ FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.c
396 ${datadir}/polkit-1/actions/org.freedesktop.machine1.policy \ 435 ${datadir}/polkit-1/actions/org.freedesktop.machine1.policy \
397 " 436 "
398 437
438RRECOMMENDS_${PN}-container += "\
439 ${PN}-journal-upload \
440 ${PN}-journal-remote \
441 ${PN}-journal-gatewayd \
442 "
443
399FILES_${PN}-extra-utils = "\ 444FILES_${PN}-extra-utils = "\
400 ${base_bindir}/systemd-escape \ 445 ${base_bindir}/systemd-escape \
401 ${base_bindir}/systemd-inhibit \ 446 ${base_bindir}/systemd-inhibit \