X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvserver.functions;h=3878446b8c31ee7036e3cce1d9ec0a82ab9f0456;hb=632060253a50825d6553ff56ecb89a5ef7a2dd95;hp=1a7309480526a2a4c8eb108a95c6a2754d771cb9;hpb=28f2941c7781b494b9a47d71d56317b2ee8940d6;p=util-vserver.git diff --git a/scripts/vserver.functions b/scripts/vserver.functions index 1a73094..3878446 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -346,6 +346,13 @@ function _generateInitOptions 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 @@ -952,7 +959,7 @@ function mountVserver _namespaceCleanup "$cfgdir" isAvoidNamespace "$cfgdir" || \ - $_SECURE_MOUNT --rbind -n "$vdir" "/" + $_SECURE_MOUNT --rbind -n -o dev "$vdir" "/" } function _umountVserverInternal