make.sh: Load loop module (if not loaded, yet).

This commit is contained in:
Michael Tremer
2014-04-29 13:09:56 +02:00
parent 742c334a5b
commit 841663e765

View File

@@ -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