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 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,13 @@
|
||||||
#!/bin/bash
|
#!/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=$$
|
PID=$$
|
||||||
|
|
||||||
config_file=
|
config_file=
|
||||||
|
|
Loading…
Add table
Reference in a new issue