summaryrefslogtreecommitdiff
path: root/scripts/build/binary_hdd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/binary_hdd')
-rwxr-xr-xscripts/build/binary_hdd5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/binary_hdd b/scripts/build/binary_hdd
index 23cc4f0e2..a4ef83170 100755
--- a/scripts/build/binary_hdd
+++ b/scripts/build/binary_hdd
@@ -54,6 +54,7 @@ esac
Check_package chroot /usr/share/doc/mtools mtools
Check_package chroot /sbin/parted parted
Check_package host /sbin/fdisk fdisk
+Check_package host /sbin/losetup mount
echo "${LB_BOOTLOADERS}" | \
while IFS="," read -r BOOTLOADER
@@ -145,7 +146,7 @@ else
fi
dd if=/dev/zero of=chroot/binary.img bs=1024k count=0 seek=${REAL_DIM}
-FREELO="$(${LB_LOSETUP} -f)"
+FREELO="$(losetup -f)"
MAKEDEV=false
if [ ! -b chroot/${FREELO} ]
then
@@ -223,7 +224,7 @@ esac
Lodetach ${FREELO}
-FREELO="$(${LB_LOSETUP} -f)"
+FREELO="$(losetup -f)"
Losetup $FREELO chroot/binary.img 1
case "${LB_BINARY_FILESYSTEM}" in