summaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-05-16 08:08:37 +0200
committerTails developers <amnesia@boum.org>2012-05-16 13:30:42 +0200
commite379dfc4baea607c089569d0ad327ec039360fc2 (patch)
tree24893f7d78e6af6a327564eef048f19bfc1a2f1b /Rakefile
parent3dfbc87ebbeeef360f0da0febeb4e5286e9b5b8d (diff)
vagrant: Prevent in-memory builds when memory is tight
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index d591e33..ea42ade 100644
--- a/Rakefile
+++ b/Rakefile
@@ -66,6 +66,7 @@ task :parse_build_options do
case opt
# Memory build settings
when 'ram'
+ abort "Not enough free memory to do an in-memory build. Aborting." unless enough_free_memory?
ENV['TAILS_RAM_BUILD'] = '1'
when 'noram'
ENV['TAILS_RAM_BUILD'] = nil