commit 802de1b75005a9a74050d21d489d057bb6619169
parent 1d76ab381b21ec1630af1be020814462b864607d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 4 Mar 2014 17:03:04 +0100
create-bootable: make compatible with busybox losetup
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/stuff/create-bootable b/stuff/create-bootable
@@ -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