Use losetup rather than -o loop
authorGuido Trotter <ultrotter@google.com>
Mon, 26 Jan 2009 12:19:31 +0000 (12:19 +0000)
committerGuido Trotter <ultrotter@google.com>
Mon, 26 Jan 2009 12:19:31 +0000 (12:19 +0000)
commit4382575861c628a3c7ce42eece16fadb5b92c32a
tree83a32c22e7993ed5ce6652f2a73ec61e163a46a4
parent730edd01f60098535abb61fa7d801f826fd1a0d7
Use losetup rather than -o loop

If the device we're given is actually a file, rather than just mounting
it with the -o loop option, we'll explicitely losetup it to a device,
and losetup -d (detach) it at the end. This allows us to do more actions
on the target device (for example partition it, if needed).

Reviewed-by: iustinp
create.in