catalyst-auto: run in a mount namespace

This way if things crash, we don't leak mounts that need cleaning up.
This commit is contained in:
Mike Frysinger 2014-01-22 00:58:29 -05:00
parent d1fd40ee74
commit 509986231a

View file

@ -1,5 +1,13 @@
#!/bin/bash
# First let's get our own mount namespace to avoid leaking crap.
if [[ -z ${UNSHARE} ]] ; then
if type -P unshare >&/dev/null ; then
UNSHARE=true exec unshare -m -- "$0" "$@"
fi
fi
unset UNSHARE
PID=$$
config_file=