mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
make.sh: Load loop module (if not loaded, yet).
This commit is contained in:
3
make.sh
3
make.sh
@@ -841,7 +841,8 @@ buildpackages() {
|
|||||||
ipfiremake cdrom
|
ipfiremake cdrom
|
||||||
|
|
||||||
# Check if there is a loop device for building in virtual environments
|
# 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
|
ipfiremake flash-images
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user