From c3e7838c3eb98ddb1db59b52aa3b6fca9cd7f643 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 18 Jan 2017 14:21:32 -0800 Subject: [PATCH] delete the mount namespace on stop --- newns | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newns b/newns index 39b664b..aff500b 100755 --- a/newns +++ b/newns @@ -211,6 +211,9 @@ stop() { if $create; then ip netns del $nn fi + if mountpoint /root/mount_namespaces/$nn >/dev/null; then + umount /root/mount_namespaces/$nn + fi } case $action in -- 2.30.2