Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Bind mounts

7 bytes removed, 01:13, 20 March 2014
fix the mount script creation process!
CTID=777
cat << EOF > /etc/vz/conf/${CTID}.mountecho '#!/bin/bash
. /etc/vz/vz.conf
. ${VE_CONFFILE}
if [ ! -e ${VE_ROOT}${DST} ]; then mkdir -p ${VE_ROOT}${DST}; fi
mount -n -t simfs ${SRC} ${VE_ROOT}${DST} -o ${SRC}
EOF' > /etc/vz/conf/${CTID}.mount
chmod +x /etc/vz/conf/${CTID}.mount