We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bf224c commit 62ca910Copy full SHA for 62ca910
scripts/start_global_shell.sh
@@ -6,11 +6,8 @@
6
# Usage: ./start_global_shell.sh
7
################################################################################
8
9
-# TODO: return to current directory
10
-# TODO: display success message
11
-
12
if [ "$(readlink /proc/self/ns/mnt)" != "$(readlink /proc/1/ns/mnt)" ]; then
13
- nsenter -t 1 -m -- /bin/sh
+ nsenter -t 1 -m -- /bin/sh -c "cd $PWD && echo 'now running in global mount namespace' && /bin/sh"
14
else
15
echo 'already running in global mount namespace'
16
fi
0 commit comments