iankelling.org
/
git
/
newns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b9cf400
)
make more resilient
author
Ian Kelling
<ian@iankelling.org>
Wed, 8 Feb 2017 19:50:31 +0000
(11:50 -0800)
committer
Ian Kelling
<ian@iankelling.org>
Wed, 8 Feb 2017 19:50:31 +0000
(11:50 -0800)
newns
patch
|
blob
|
history
diff --git
a/newns
b/newns
index 76c7adf53c6aa4b623572eeb3cb07227f7cfbecb..d4ee334ac784232c291548307c65f25166ad4c76 100755
(executable)
--- a/
newns
+++ b/
newns
@@
-190,8
+190,11
@@
start() {
mkdir -p /root/mount_namespaces
if ! mountpoint /root/mount_namespaces >/dev/null; then
mount --bind /root/mount_namespaces /root/mount_namespaces
mkdir -p /root/mount_namespaces
if ! mountpoint /root/mount_namespaces >/dev/null; then
mount --bind /root/mount_namespaces /root/mount_namespaces
- mount --make-private /root/mount_namespaces
fi
fi
+ # note: This is outside the mount condition because I've mysteriously
+ # had this become shared instead of private, perhaps it
+ # got remounted somehow and lost the setting.
+ mount --make-private /root/mount_namespaces
if [[ ! -e /root/mount_namespaces/$nn ]]; then
touch /root/mount_namespaces/$nn
fi
if [[ ! -e /root/mount_namespaces/$nn ]]; then
touch /root/mount_namespaces/$nn
fi