This script do not use extract fstab (as done by lxc-debian)
so there is no reason to set the lxc.mount key in config file.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Michel Normand <michel_mno@laposte.net>
# Default container name
NAME="fedora"
CONFFILE="lxc.conf"
-MNTFILE="mount.conf"
UTSNAME=
IPV4="172.20.0.21"
GATEWAY="172.20.0.1"
lxc.network.link = br0
lxc.network.name = eth0
lxc.network.mtu = ${MTU}
-lxc.mount = ${MNTFILE}
lxc.rootfs = ${ROOTFS}
lxc.cgroup.devices.deny = a
# /dev/null and zero
EOF
}
-write_lxc_mounts() {
-cat <<EOF > ${MNTFILE}
-
-EOF
-}
-
create() {
# choose a container name, default is already in shell NAME variable
) 200> "@LOCALSTATEDIR@/lock/subsys/lxc"
fi
-write_lxc_mounts
-
write_lxc_configuration
write_distro_inittab
# remove the configuration files
rm -f ${CONFFILE}
-rm -f ${MNTFILE}
if [ "${RES}" != "0" ]; then
echo "Failed to create '${NAME}'"