diff options
author | Johannes Schauer Marin Rodrigues <josch@debian.org> | 2022-08-19 15:40:27 +0200 |
---|---|---|
committer | Johannes Schauer Marin Rodrigues <josch@debian.org> | 2022-08-19 15:40:33 +0200 |
commit | aaea83532018fe89291d612fb2ce17c53d557b38 (patch) | |
tree | c671606d44e6b31b97df5e475acb7893ab89e3a7 | |
parent | c5580a955ac5292b1a0586f1b0365d7f6b6d48dc (diff) |
autoscripts/postinst-init-tmpfiles: Support DPKG_ROOT
Use `--root` to make `systemd-tmpfiles` operate on `DPKG_ROOT`.
-rw-r--r-- | autoscripts/postinst-init-tmpfiles | 4 |
1 files changed, 1 insertions, 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 |