fedora: add option MASK_TMP to prevent overmounting /tmp with tmpfs
this is important for use with vagrant-cachier
This commit is contained in:
parent
6e382c156c
commit
e84c681e38
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue