Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
make /tmp a tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
ccope committed Aug 18, 2015
1 parent eba671c commit 5fb0bcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/vagrant-lxc/action/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def call(env)
config.customize 'mount.entry', '/sys/fs/selinux sys/fs/selinux none bind,ro 0 0'
end

# Make /tmp a tmpfs to prevent init scripts from nuking synced folders mounted in here
config.customize 'mount.entry', 'tmpfs tmp tmpfs nodev,nosuid,size=2G 0 0'

env[:ui].info I18n.t("vagrant_lxc.messages.starting")
env[:machine].provider.driver.start(config.customizations)

Expand Down

0 comments on commit 5fb0bcb

Please sign in to comment.