create_virtualimage: use the first unused loop device

This commit is contained in:
Stefan Saraev 2012-05-22 23:40:42 +03:00
parent 8fc3d3e130
commit c02e678ebf

View File

@ -43,7 +43,7 @@ fi
DISK="$1/OpenELEC.img"
VMDK="$1/OpenELEC.vmdk"
LOOP="/dev/loop0"
LOOP=$(losetup -f)
clear
echo "#########################################################"