From b7f941da05d80dd7c3924c13841f25b63c88ba21 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rub=C3=A9n=20Rodr=C3=ADguez?= <ruben@trisquel.info>
Date: Thu, 16 May 2013 16:01:51 +0200
Subject: [PATCH] Make sure we umount /tmp in the jails before starting

---
 makepackage | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makepackage b/makepackage
index 27d31245..54d680e0 100644
--- a/makepackage
+++ b/makepackage
@@ -198,8 +198,8 @@ tmpumount(){
 }
 tmpmount(){
   [ $MEM -lt 16000000 ] && return
-  echo $PACKAGE | grep -q "linux" && return
   grep jails/$UPSTREAM-$ARCH/tmp /proc/mounts -q && tmpumount
+  echo $PACKAGE | grep -q "linux" && return
   mount -t tmpfs -o size=15G none jails/$UPSTREAM-$ARCH/tmp
 }
 
-- 
GitLab