fedora: add option MASK_TMP to prevent overmounting /tmp with tmpfs

this is important for use with vagrant-cachier
This commit is contained in:
Michael Adam 2015-01-08 00:59:04 +01:00
parent 6e382c156c
commit e84c681e38

View file

@ -19,3 +19,11 @@ PACKAGES=(vim curl wget man-db bash-completion ca-certificates sudo openssh-serv
utils.lxc.attach yum update -y
utils.lxc.attach yum install ${PACKAGES[*]} -y
MASK_TMP=${MASK_TMP:-0}
if [ $MASK_TMP -eq 1 ]; then
# don't overmount /tmp with tmpfs: important for lxc-cachier
utils.lxc.attach systemctl mask tmp.mount
fi