From 3f4c42c462e8a00d1549c832d981758a7d95080b Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Wed, 12 Aug 2026 09:54:43 -0700 Subject: [PATCH] main/postmarketos-duranium: always run sd-sysuser on boot This ensures that sysusers conf changes are always applied when booting an update. This is functionally the same as what we do in mutable pmos, where apk runs systemd.trigger that runs sd-sysusers if new sysusers conf is added/modified on an existing install. Fixes #4829 Signed-off-by: Clayton Craft Part-of: --- main/postmarketos-duranium/APKBUILD | 4 +++- ...-systemd-system-systemd-sysusers.service.d-always-run.conf | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 main/postmarketos-duranium/rootfs-usr-lib-systemd-system-systemd-sysusers.service.d-always-run.conf diff --git a/main/postmarketos-duranium/APKBUILD b/main/postmarketos-duranium/APKBUILD index 8001a88db..3a2b7e998 100644 --- a/main/postmarketos-duranium/APKBUILD +++ b/main/postmarketos-duranium/APKBUILD @@ -1,6 +1,6 @@ maintainer="Clayton Craft " pkgname=postmarketos-duranium -pkgver=14 +pkgver=15 pkgrel=0 pkgdesc="Configuration for building and booting immutable postmarketOS images" url="https://wiki.postmarketos.org/wiki/Duranium_(Immutable_postmarketOS)" @@ -52,6 +52,7 @@ _source644=" usr/lib/systemd/system/initramfs-usb-gadget.service usr/lib/systemd/system/systemd-confext.service.d/mutable.conf usr/lib/systemd/system/systemd-cryptsetup@.service.d/factory-reset-ordering.conf + usr/lib/systemd/system/systemd-sysusers.service.d/always-run.conf usr/lib/systemd/system/unl0kr-agent.path.d/plymouth-handoff.conf usr/lib/systemd/system/unl0kr-agent.service.d/conflicts-console.conf usr/lib/systemd/system/unl0kr-agent.service.d/plymouth-handoff.conf @@ -244,6 +245,7 @@ cd106f732dcbe2251136ad33fb24d08dc96aad2f9a2c9da27ed60e113c61cfac0ca51907388f0112 9c0eb915c09fc3d8de3a1a486f3e2202be05b11ba924d13349a70d93355ca0c72fe2417504e4b7e0c74aa1bb7f5ae77e3497f09dd67e48c0b8f2432f382f2f38 rootfs-usr-lib-systemd-system-initramfs-usb-gadget.service 16c5f02640b527470ee4060dab0a3e0491ff751d631c30f2ce83858c1cf81f0980b687e9473f74fc96185356cb63bcf14008d3891f0c98ac105aee9711cdf9f5 rootfs-usr-lib-systemd-system-systemd-confext.service.d-mutable.conf 101b1af9f26fe57f8be1f0353d8146724aaad4c80e790b85559e0d7ce10a1b9169429b112fc17dafde4902e26617ced00b3540a3999c50b606f3ff7564759464 rootfs-usr-lib-systemd-system-systemd-cryptsetup@.service.d-factory-reset-ordering.conf +1fd63cc21b444de6300761dc94bada9282635c6fbb61bafb12a4ac2b182125386c2cde6f781326bb632451f203118bb22b13ba442d5197a9493ac55c95c34de6 rootfs-usr-lib-systemd-system-systemd-sysusers.service.d-always-run.conf 612e50282c0ceb7676d8e62853e99bd693103fc59098d8ac91173538ff1c3fa8b69d3eebeaa6390df7c8f9cc62fddae1ca2d35d07d97e60b40b660bc62bf049b rootfs-usr-lib-systemd-system-unl0kr-agent.path.d-plymouth-handoff.conf b1aa826b83fbb5d606b5dc37a4db67a7233519e0ac953325395dd7f3b7e303d206f6297e51a749d07ee173ccbc4ccf055e92888e38345783d4f4c7687a6a9870 rootfs-usr-lib-systemd-system-unl0kr-agent.service.d-conflicts-console.conf 017fe2d6298842b24498000c98e851b441da4edf91cadf2bfc0542a46364f105eda9a5ca772c87e7bd4749e101833fdb43604081b7ab26ebea426559f9de418e rootfs-usr-lib-systemd-system-unl0kr-agent.service.d-plymouth-handoff.conf diff --git a/main/postmarketos-duranium/rootfs-usr-lib-systemd-system-systemd-sysusers.service.d-always-run.conf b/main/postmarketos-duranium/rootfs-usr-lib-systemd-system-systemd-sysusers.service.d-always-run.conf new file mode 100644 index 000000000..d3ee815d6 --- /dev/null +++ b/main/postmarketos-duranium/rootfs-usr-lib-systemd-system-systemd-sysusers.service.d-always-run.conf @@ -0,0 +1,4 @@ +# Run sysusers unconditionally on every boot. +# See: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4829 +[Unit] +ConditionNeedsUpdate=