mbox series

[wrynose,v2,00/10] systemd: Upgrade 259.5 -> 259.10

Message ID 20261105110930.52643-1-jaipaul.cheernam@est.tech
Headers show
Series systemd: Upgrade 259.5 -> 259.10 | expand

Message

Jaipaul Cheernam Nov. 5, 2026, 11:09 a.m. UTC
This series upgrades systemd on the v259 stable branch from 259.5 to
  259.10, and backports the upstream oe-core change that generates
  hwdb.bin natively at rootfs time instead of via qemu-user.
  
  Without the native-hwdb change, the 259.10 uplift breaks image
  do_rootfs: the update_udev_hwdb postinstall intercept runs the target
  'udevadm hwdb' under qemu-user, and on systemd 259.9+ its statx() use
  fails there with:
  
      Failed to write database /usr/lib/udev/hwdb.bin: Bad address
  
  Confirmed by A/B build: 259.5 builds the rootfs fine, 259.10 fails
  deterministically at the update_udev_hwdb intercept.
  
  To keep the series bisectable and regression-free, the nine upstream
  oe-core commits that introduce and depend on the native systemd-hwdb
  are applied first, and the version uplift is the final commit. This
  ordering means every commit builds and boots on its own: at no point
  is the tree on 259.10 without the native-hwdb fix already in place.
  
  The nine fix commits are cherry-picked from oe-core. Seven apply
  cleanly; two (patches 7 and 8) carry small, documented adaptations to
  our local systemd-tools-native recipe, recorded as Note: lines in the
  commit messages:
  
    - MESON_TARGET keeps the "<name>:executable" qualifier. Our meson
      (1.10.2) reports a bare "systemctl"/"systemd-hwdb" as an ambiguous
      target name because systemd also ships a bash-completion custom
      target named "systemctl". This can be reverted once meson is
      upgraded (oe-core master uses bare names with meson 1.12.x).
    - The local "-Dpam=disabled" option and the systemd-sysv-install
      do_install:append are preserved.
  
  Backport note for 259.10:
    - The upstream "hwdb: strip the root from filenames" source fix is
      already part of systemd v259.8+ (upstream a9397de9d2). The
      corresponding 0001-hwdb-strip-the-root-...patch is therefore carried
      only while the tree still builds 259.5 (patch 8) and dropped again
      in the version uplift (patch 10), where it is redundant.
  
  The version uplift (patch 10) also drops two patches now included
  upstream in 259.10:
    - 0001-Revert-resolve-refuse-traffic-from-the-local-host-only.patch
    - 0004-tpm2-util-fix-PCR-bank-guessing-without-EFI.patch
  
  Testing (qemux86-64, INIT_MANAGER = "systemd"):
    - Every commit builds and 'bitbake core-image-minimal' do_rootfs
      succeeds; the intercept log shows "Updating HWDB with native
      systemd-hwdb..." instead of the previous qemu-user failure.
    - oeqa systemd runtime suite (testimage) at every commit:
      10 passed, 2 skipped (minidebuginfo coredump and the
      read-only-rootfs disable/enable variant), 0 failures, 0 errors.

Jaipaul Cheernam (1):
  systemd: Upgrade 259.5 -> 259.10

Ross Burton (9):
  keymaps: remove obsolete systemd masking
  initscripts: remove obsolete systemd masking
  modutils-initscripts: remove obsolete systemd masking
  systemd: move systemd-systemctl-native PACKAGE_WRITE_DEPS to
    systemd.bb
  classes/systemd: remove obsolete DEPENDS
  systemd-systemctl-native: rename to systemd-tools-native
  systemd-tools-native: reduce dependencies, add comments
  systemd-tools-native: add systemd-hwdb
  systemd: no need to use qemu for hwdb update

 meta/classes-recipe/systemd.bbclass           |  2 -
 meta/conf/distro/include/maintainers.inc      |  2 +-
 meta/recipes-bsp/keymaps/keymaps_1.0.bb       | 17 -----
 .../initscripts/initscripts_1.0.bb            | 26 --------
 ...259.5.bb => systemd-boot-native_259.10.bb} |  0
 ...d-boot_259.5.bb => systemd-boot_259.10.bb} |  0
 .../systemd/systemd-systemctl-native_259.5.bb | 29 ---------
 .../systemd/systemd-tools-native_259.10.bb    | 45 ++++++++++++++
 meta/recipes-core/systemd/systemd.inc         |  2 +-
 ...use-traffic-from-the-local-host-only.patch | 61 ------------------
 ...il-fix-PCR-bank-guessing-without-EFI.patch | 62 -------------------
 .../{systemd_259.5.bb => systemd_259.10.bb}   | 12 ++--
 .../modutils-initscripts.bb                   | 10 ---
 scripts/postinst-intercepts/update_udev_hwdb  | 18 +++---
 14 files changed, 62 insertions(+), 224 deletions(-)
 rename meta/recipes-core/systemd/{systemd-boot-native_259.5.bb => systemd-boot-native_259.10.bb} (100%)
 rename meta/recipes-core/systemd/{systemd-boot_259.5.bb => systemd-boot_259.10.bb} (100%)
 delete mode 100644 meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb
 create mode 100644 meta/recipes-core/systemd/systemd-tools-native_259.10.bb
 delete mode 100644 meta/recipes-core/systemd/systemd/0001-Revert-resolve-refuse-traffic-from-the-local-host-only.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0004-tpm2-util-fix-PCR-bank-guessing-without-EFI.patch
 rename meta/recipes-core/systemd/{systemd_259.5.bb => systemd_259.10.bb} (99%)