Created
June 30, 2015 12:40
-
-
Save caroman/337236ca34acc0fcb958 to your computer and use it in GitHub Desktop.
Configuation file for Open Virtuozzo VM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# If one of these files does not exist then something | |
# is really broken | |
[ -f /etc/vz/vz.conf ] || exit 1 | |
[ -f $VE_CONFFILE ] || exit 1 | |
# Source both files. Note the order is important. | |
. /etc/vz/vz.conf | |
. $VE_CONFFILE | |
SRC=/mnt/disk | |
DST=/mnt/disk | |
echo "mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC" | |
mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment