diff --git a/makepackage b/makepackage
index 27d31245a55c1e37eb425602fcf2ed8acbfa1880..54d680e0463450d112f344107e82cb1023b9f7d8 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
 }