poky/meta
Peter Kjellerstedt 6338bb1d12 systemd.bbclass: Make systemd_postinst run as intended
After the switch from using a systemctl written in Python to using the
official version of systemctl from the systemd project, the
systemd_postinst function has effectively not been executed during the
rootfs creation. The reason is that systemctl provided by
systemctl-native fails if run without arguments (as systemd_postinst
does):

  Failed to connect to system scope bus via local transport: Operation
  not permitted (consider using --machine=<user>@.host --user to connect
  to bus of other user)

This is not seen in the logs since stderr is sent to /dev/null, and the
only way to tell that there is a problem is because systemd services
that are expected to be enabled aren't running.

The reason this has gone unnoticed is because systemd_handle_machine_id
in rootfs-postcommands.bbclass will call systemctl preset-all, which in
most cases will create the missing links to enable the systemd services.

This change effectively reverts commit
a52e66762c0c51918b1ba3d4622759637b6e920a (systemd.bbclass: update
command to check systemctl available) and instead only runs systemctl
without arguments (to determine that it can communicate with systemd)
when executed on target.

(From OE-Core rev: 6cb4239b412dc782f66728e47753c1a82cccf759)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-09-22 12:21:23 -07:00
..
classes classes/spdx-*.bbclass: move spdx2 specific variables out of spdx-common class 2025-03-28 11:19:40 +00:00
classes-global sstate: apply proper umask when fetching from SSTATE_MIRROR 2025-07-04 07:50:16 -07:00
classes-recipe systemd.bbclass: Make systemd_postinst run as intended 2025-09-22 12:21:23 -07:00
conf default-distrovars.inc: Fix CONNECTIVITY_CHECK_URIS redirect issue 2025-09-09 09:30:07 -07:00
files overlayfs-etc: Unmount /sys and /proc before init 2025-03-27 11:19:04 +00:00
lib license.py: avoid deprecated ast.Str 2025-09-22 12:21:23 -07:00
recipes-bsp lrzsz: Fix build with gcc-15 2025-03-27 11:19:04 +00:00
recipes-connectivity avahi: fix CVE-2024-52615 2025-08-13 08:42:57 -07:00
recipes-core systemd-systemctl-native: Install systemd-sysv-install 2025-09-22 12:21:23 -07:00
recipes-devtools rpm: keep leading `/' from sed operation 2025-09-22 12:21:23 -07:00
recipes-extended libarchive: patch CVE-2025-5918 2025-08-29 10:02:59 -07:00
recipes-gnome gdk-pixbuf: fix CVE-2025-7345 2025-07-21 09:17:59 -07:00
recipes-graphics xserver-xorg: upgrade 21.1.6 -> 21.1.18 2025-07-29 08:42:34 -07:00
recipes-kernel linux-yocto/6.12: update CVE exclusions (6.12.44) 2025-09-22 12:21:23 -07:00
recipes-multimedia pulseaudio: Add audio group explicitly 2025-09-09 09:30:07 -07:00
recipes-rt rt-tests: Fix build with glibc 2.41+ 2025-01-29 16:16:52 +00:00
recipes-sato webkitgtk: upgrade 2.48.1 -> 2.48.2 2025-07-17 13:57:58 -07:00
recipes-support vim: upgrade 9.1.1198 -> 9.1.1652 2025-08-29 10:02:59 -07:00
site site/arm-linux: Fix typo for sizeof_char_p 2024-11-21 12:16:28 +00:00
COPYING.MIT
recipes.txt