From 14d6a0952aec6a7c35caa83f7b58c1a830c3b70f Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 8 Feb 2017 11:50:31 -0800 Subject: [PATCH] make more resilient --- newns | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/newns b/newns index 76c7adf..d4ee334 100755 --- 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 - mount --make-private /root/mount_namespaces 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 -- 2.30.2