Skip to content

Commit

Permalink
make sure /etc/ld.so.preload exists
Browse files Browse the repository at this point in the history
`ld-system-preload-disable` fails if `/etc/ld.so.preload` does not exists.

> bwrap: Can't create file at /etc/ld.so.preload: Permission denied

Therefore ensure that at least and empty `/etc/ld.so.preload` exists.
  • Loading branch information
Patrick Schleizer committed Dec 20, 2020
1 parent 484dbbd commit bc37760
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions debian/helper-scripts.postinst
Expand Up @@ -15,6 +15,13 @@ true "
#####################################################################
"

if ! test -f /etc/ld.so.preload ; then
## ld-system-preload-disable fails if /etc/ld.so.preload does not exists.
## bwrap: Can't create file at /etc/ld.so.preload: Permission denied
## Therefore ensure that at least and empty /etc/ld.so.preload exists.
touch /etc/ld.so.preload
fi

## workaround for 'dh_installinit should run systemd-tmpfiles if a
## /usr/lib/tmpfiles.d/ snippet gets shipped for systemd-only packages
## also' - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795519
Expand Down

0 comments on commit bc37760

Please sign in to comment.