From aaea83532018fe89291d612fb2ce17c53d557b38 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Fri, 19 Aug 2022 15:40:27 +0200 Subject: autoscripts/postinst-init-tmpfiles: Support DPKG_ROOT Use `--root` to make `systemd-tmpfiles` operate on `DPKG_ROOT`. --- autoscripts/postinst-init-tmpfiles | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoscripts/postinst-init-tmpfiles b/autoscripts/postinst-init-tmpfiles index d651e09c..f56f3f97 100644 --- a/autoscripts/postinst-init-tmpfiles +++ b/autoscripts/postinst-init-tmpfiles @@ -1,5 +1,3 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then - if [ -z "${DPKG_ROOT:-}" ] ; then - systemd-tmpfiles --create #TMPFILES# >/dev/null || true - fi + systemd-tmpfiles --root="$DPKG_ROOT/" --create #TMPFILES# >/dev/null || true fi -- cgit v1.2.3