make.sh: Load loop module (if not loaded, yet).
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Apr 2014 11:09:56 +0000 (13:09 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Apr 2014 11:09:56 +0000 (13:09 +0200)
make.sh

diff --git a/make.sh b/make.sh
index 23b63ae..c702a7f 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -841,7 +841,8 @@ buildpackages() {
   ipfiremake cdrom
 
   # Check if there is a loop device for building in virtual environments
-  if [ $BUILD_IMAGES == 1 ] && ([ -e /dev/loop/0 ] || [ -e /dev/loop0 ]); then
+  modprobe loop 2>/dev/null
+  if [ $BUILD_IMAGES == 1 ] && ([ -e /dev/loop/0 ] || [ -e /dev/loop0 ] || [ -e "/dev/loop-control" ]); then
        ipfiremake flash-images
   fi