Skip to content

Commit 8061225

Browse files
committed
fix: call systemd-tmpfiles with specific config file (CO-2524)
Change from: systemd-tmpfiles --create To: systemd-tmpfiles --create /usr/lib/tmpfiles.d/carbonio-mta.conf Benefits: - Only processes this package's tmpfiles.d configuration - Avoids redundant processing of other packages' configs - Faster execution during package installation - Clear separation of concerns between packages This prevents each package from reprocessing all tmpfiles.d configs in /usr/lib/tmpfiles.d/ during postinst, which was inefficient when packages have dependency relationships.
1 parent 77bcc80 commit 8061225

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mta/PKGBUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ postinst__apt() {
212212
fi
213213

214214
systemd-sysusers
215-
systemd-tmpfiles --create
215+
systemd-tmpfiles --create /usr/lib/tmpfiles.d/carbonio-mta.conf
216216

217217
if [ -d /run/systemd/system ]; then
218218
systemctl daemon-reload &>/dev/null || :
@@ -280,7 +280,7 @@ postinst__ubuntu_noble() {
280280
fi
281281

282282
systemd-sysusers
283-
systemd-tmpfiles --create
283+
systemd-tmpfiles --create /usr/lib/tmpfiles.d/carbonio-mta.conf
284284

285285
if [ -d /run/systemd/system ]; then
286286
systemctl daemon-reload &>/dev/null || :
@@ -335,7 +335,7 @@ postinst__rocky_8() {
335335
fi
336336

337337
systemd-sysusers
338-
systemd-tmpfiles --create
338+
systemd-tmpfiles --create /usr/lib/tmpfiles.d/carbonio-mta.conf
339339

340340
if [ -d /run/systemd/system ]; then
341341
systemctl daemon-reload &>/dev/null || :
@@ -389,7 +389,7 @@ postinst__rocky_9() {
389389
fi
390390

391391
systemd-sysusers
392-
systemd-tmpfiles --create
392+
systemd-tmpfiles --create /usr/lib/tmpfiles.d/carbonio-mta.conf
393393

394394
if [ -d /run/systemd/system ]; then
395395
systemctl daemon-reload &>/dev/null || :

0 commit comments

Comments
 (0)