ignore experimental subdirs
[rrq/overlay-boot.git] / overlay-go
index ef237fc51a836e42c46914a88295b399ec11540a..991067d5a453c20bf629d4392097499a10087331 100755 (executable)
@@ -5,10 +5,7 @@
 
 NAME="$1"
 
-if [ -z "$NAME" ] ; then
-    echo "Select subhost: $(list_running)"
-    exit 0
-fi
+[ -z "$NAME" ] && echo "Select subhost: $(list_running)" && exit 0
 
 read USPID RSPID <<EOF
 $(is_live $NAME)
@@ -24,7 +21,7 @@ EOF
     exit 1
 fi
 
-sudo nsenter -t "$RSPID" -n -m -p -r -w -u -C /bin/bash
+sudo nsenter -t "$RSPID" -n -m -p -r -w -i -u -C /bin/bash
 if [ $? = 137 ] ; then
     echo "######### please 'fg' this again (if stopped)" >&2
     stty sane # a killed bash might leave the tty insane and stty