From: Zbigniew Jędrzejewski-Szmek Date: Wed, 13 May 2026 07:52:19 +0000 (+0200) Subject: meson: move systemd-sysupdate to /usr/bin/ X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3061ec2707c626ebdee0de03b130bca79727d70e;p=thirdparty%2Fsystemd.git meson: move systemd-sysupdate to /usr/bin/ Let's make systemd-sysupdate easy to call. It was added in 2021 and it's around to stay and not "experimental" in any way. --- diff --git a/src/sysupdate/meson.build b/src/sysupdate/meson.build index 3a1ee1a048c..0cfe22f5283 100644 --- a/src/sysupdate/meson.build +++ b/src/sysupdate/meson.build @@ -21,7 +21,7 @@ systemd_updatectl_sources = files( ) executables += [ - libexec_template + { + executable_template + { 'name' : 'systemd-sysupdate', 'public' : true, 'conditions' : ['ENABLE_SYSUPDATE'], @@ -57,3 +57,10 @@ if conf.get('ENABLE_SYSUPDATED') == 1 install_data('org.freedesktop.sysupdate1.policy', install_dir : polkitpolicydir) endif + +if conf.get('ENABLE_SYSUPDATE') == 1 + # symlink for backwards compatibility after rename + install_symlink('systemd-sysupdate', + pointing_to : libexecdir_to_bin / 'systemd-sysupdate', + install_dir : libexecdir) +endif diff --git a/test/units/TEST-72-SYSUPDATE.sh b/test/units/TEST-72-SYSUPDATE.sh index 6709cd543f9..0e9bf78646e 100755 --- a/test/units/TEST-72-SYSUPDATE.sh +++ b/test/units/TEST-72-SYSUPDATE.sh @@ -5,7 +5,7 @@ set -eux set -o pipefail -SYSUPDATE=/lib/systemd/systemd-sysupdate +SYSUPDATE=/usr/bin/systemd-sysupdate SYSUPDATED=/lib/systemd/systemd-sysupdated SECTOR_SIZES=(512 4096) WORKDIR="$(mktemp -d /var/tmp/test-72-XXXXXX)" diff --git a/units/meson.build b/units/meson.build index fca299aa846..c78835aa70e 100644 --- a/units/meson.build +++ b/units/meson.build @@ -785,7 +785,7 @@ units = [ 'symlinks' : ['system-install.target.wants/'], }, { - 'file' : 'systemd-sysupdate-reboot.service.in', + 'file' : 'systemd-sysupdate-reboot.service', 'conditions' : ['ENABLE_SYSUPDATE'], }, { @@ -793,7 +793,7 @@ units = [ 'conditions' : ['ENABLE_SYSUPDATE'], }, { - 'file' : 'systemd-sysupdate.service.in', + 'file' : 'systemd-sysupdate.service', 'conditions' : ['ENABLE_SYSUPDATE'], }, { diff --git a/units/systemd-sysupdate-reboot.service.in b/units/systemd-sysupdate-reboot.service similarity index 91% rename from units/systemd-sysupdate-reboot.service.in rename to units/systemd-sysupdate-reboot.service index 5d4011a2132..6750fc431ef 100644 --- a/units/systemd-sysupdate-reboot.service.in +++ b/units/systemd-sysupdate-reboot.service @@ -14,7 +14,7 @@ ConditionVirtualization=!container [Service] Type=oneshot -ExecStart={{LIBEXECDIR}}/systemd-sysupdate reboot +ExecStart=systemd-sysupdate reboot [Install] Also=systemd-sysupdate-reboot.timer diff --git a/units/systemd-sysupdate.service.in b/units/systemd-sysupdate.service similarity index 95% rename from units/systemd-sysupdate.service.in rename to units/systemd-sysupdate.service index 1becbec5ede..fc4d74a583f 100644 --- a/units/systemd-sysupdate.service.in +++ b/units/systemd-sysupdate.service @@ -17,7 +17,7 @@ ConditionVirtualization=!container [Service] Type=simple NotifyAccess=main -ExecStart={{LIBEXECDIR}}/systemd-sysupdate update +ExecStart=systemd-sysupdate update CapabilityBoundingSet=CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD CAP_SETFCAP CAP_SYS_ADMIN CAP_SETPCAP CAP_DAC_OVERRIDE CAP_LINUX_IMMUTABLE NoNewPrivileges=yes MemoryDenyWriteExecute=yes