create-bootable: make compatible with busybox losetup

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
Hiltjo Posthuma 2014-03-04 17:03:04 +01:00 committed by sin
parent 1d76ab381b
commit 802de1b750

View File

@ -26,7 +26,8 @@ w
EOF
) | fdisk $img
lodev=$(losetup -f --show $img)
lodev=$(losetup -f)
losetup "$lodev" "$img"
partition="$lodev"p1
mkfs.ext2 -L MORPHEUS $partition
mount $partition /mnt