diff --git a/packages/static/kairos-overlay-files/collection.yaml b/packages/static/kairos-overlay-files/collection.yaml index f437de6..fc53324 100644 --- a/packages/static/kairos-overlay-files/collection.yaml +++ b/packages/static/kairos-overlay-files/collection.yaml @@ -1,4 +1,4 @@ packages: - name: "kairos-overlay-files" category: "static" - version: "1.1.37" + version: "1.1.38" diff --git a/packages/static/kairos-overlay-files/files/system/oem/99_sysext.yaml b/packages/static/kairos-overlay-files/files/system/oem/99_sysext.yaml index 644c0bc..f1db9d9 100644 --- a/packages/static/kairos-overlay-files/files/system/oem/99_sysext.yaml +++ b/packages/static/kairos-overlay-files/files/system/oem/99_sysext.yaml @@ -32,6 +32,15 @@ stages: [Unit] # Make it timeout early to avoid blocking boot if keys are not in there to unlock sysext JobRunningTimeoutSec=5 + - name: "systemd-sysext set hierarchy system-wide" + if: '[ -e "/run/cos/uki_boot_mode" ] && [ ! -e "/run/cos/recovery_mode" ] && [ ! -e "/run/cos/autoreset_mode" ]' + files: + - path: /etc/profile.d/systemd-sysext.sh + permissions: 0644 + owner: 0 + group: 0 + content: | + export SYSTEMD_SYSEXT_HIERARCHIES="/usr/local/bin:/usr/local/sbin:/usr/local/include:/usr/local/lib:/usr/local/share:/usr/local/src:/usr/bin:/usr/share:/usr/lib:/usr/include:/usr/src:/usr/sbin" - name: "systemd-sysext initramfs settings" if: '[ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ]' systemctl: