From a6751c53a015211e3ec5783b13bcdb04dda38142 Mon Sep 17 00:00:00 2001
From: Dougal Matthews <dougal@redhat.com>
Date: Wed, 27 May 2015 12:45:56 +0100
Subject: [PATCH] Make it clear that tmpfs is optional

Given this is often the final output, it can look like an error occured.
Changing the wording makes this clearer.

Change-Id: I70f157054e3120cffee6fa5241b1ffe0b7bfa650
---
 lib/common-functions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/common-functions b/lib/common-functions
index c534609e6..795833a77 100644
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -22,7 +22,7 @@ function tmpfs_check() {
   # the double of the minimum tmpfs size required
   RAM_NEEDED=$(($DIB_MIN_TMPFS * 2))
   [ $total_kB -lt $(($RAM_NEEDED*1024*1024)) ] || return 0
-  echo "Not enough RAM to use tmpfs for build. ($total_kB < ${RAM_NEEDED}G)"
+  echo "WARNING: Not enough RAM to use tmpfs for build. Using ${TMP_DIR:-/tmp}. ($total_kB < ${RAM_NEEDED}G)"
   return 1
 }