INITCMD_PREPARE=( $_FAKE_RUNLEVEL 3 /var/run/utmp )
;;
+ (xarch)
+ test -n "$RUNLEVEL_START" || RUNLEVEL_START=3
+ INITCMD_START=( /etc/rc.multi )
+ INITCMD_STOP=( /etc/rc.shutdown )
+ INITCMD_PREPARE=( $_FAKE_RUNLEVEL "$RUNLEVEL_START" /var/run/utmp )
+ ;;
+
(x) ;;
(*) panic "Unknown init-style '$INITSTYLE'; aborting";;
esac
_namespaceCleanup "$cfgdir"
isAvoidNamespace "$cfgdir" || \
- $_SECURE_MOUNT --rbind -n "$vdir" "/"
+ $_SECURE_MOUNT --rbind -n -o dev "$vdir" "/"
}
function _umountVserverInternal
rc=$?
if test "$rc" -ne 0 -a "$rc" -ne 1; then
- $_VPS axf | $_EGREP -e "^[^ \t]+[ \t]+$S_CONTEXT[ \t]+" >&4
+ $_VPS axf | $_EGREP -e "^[ \t]*[^ \t]+[ \t]+$S_CONTEXT[ \t]+" >&4
killContext "$S_CONTEXT" 9
fi
if test -r "$dir"/name; then
read name < "$dir"/name
else
- read name < "$vdir"/name
+ name="$VSERVER_NAME"
fi
if test "$action" = "attach"; then