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:
parent
d1fd40ee74
commit
509986231a
|
@ -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=
|
||||
|
|
Loading…
Reference in a new issue