Browse Source

create_device - wrong device for second loop

Émile Morel 9 years ago
parent
commit
d2a5a4e64b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      olinux/create_device.sh

+ 1 - 1
olinux/create_device.sh

@@ -139,7 +139,7 @@ elif [ `file ${DEB_DIR} | grep 'DOS/MBR'` ] ; then
   DEVICE1=$(losetup -f)
 
   # mount image as block device
-  losetup -o 1048576 $DEVICE ${DEB_DIR}
+  losetup -o 1048576 $DEVICE1 ${DEB_DIR}
   mount ${DEVICE1} $MNT2/
   cp -ar $MNT2/* $MNT1/
 else