From 545f8c4b5a4f95e204f31ecb496ae93aa91fcd86 Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Sun, 15 Jan 2023 12:48:37 +0100 Subject: [PATCH] package/systemd: Add config option for sysupdate feature Support the new feature added with v251, requires openssl. Signed-off-by: Norbert Lange Reviewed-by: James Hilliard Signed-off-by: Arnout Vandecappelle --- package/systemd/Config.in | 16 ++++++++++++++++ package/systemd/systemd.mk | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/package/systemd/Config.in b/package/systemd/Config.in index 0d4147840d..9f4d933779 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -481,6 +481,22 @@ config BR2_PACKAGE_SYSTEMD_SYSEXT https://www.freedesktop.org/software/systemd/man/systemd-sysext.html +config BR2_PACKAGE_SYSTEMD_SYSUPDATE + bool "enable sysupdate support" + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL + select BR2_PACKAGE_UTIL_LINUX_LIBFDISK + help + systemd-sysupdate atomically updates the host OS, container + images, portable service images or other sources, based on + the transfer configuration files described in sysupdate.d. + + Note that the bootloader must be configured specifically to + support the A/B update mechanism defined by sysupdate. Only + systemd-boot does this out of the box. + + https://www.freedesktop.org/software/systemd/man/systemd-sysupdate.html + config BR2_PACKAGE_SYSTEMD_SYSUSERS bool "enable sysusers support" help diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index a38eeba1a8..6536a2740d 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -91,7 +91,6 @@ SYSTEMD_CONF_OPTS += \ -Dsulogin-path=/usr/sbin/sulogin \ -Dsystem-gid-max=999 \ -Dsystem-uid-max=999 \ - -Dsysupdate=false \ -Dsysvinit-path= \ -Dsysvrcnd-path= \ -Dtelinit-path= \ @@ -494,6 +493,12 @@ else SYSTEMD_CONF_OPTS += -Dsysext=false endif +ifeq ($(BR2_PACKAGE_SYSTEMD_SYSUPDATE),y) +SYSTEMD_CONF_OPTS += -Dsysupdate=true +else +SYSTEMD_CONF_OPTS += -Dsysupdate=false +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y) SYSTEMD_CONF_OPTS += -Dnetworkd=true SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - systemd Network Management