[archiso] Add support for img_label= and allow img_dev same as cow_dev

* Support img_label=
* Allow use img_dev= as cow_device=
* Use new function _mnt_dev() from archiso.
* Check for error while setting loopback device.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2011-10-23 21:24:17 -03:00
parent 90fb8ea480
commit 908551ef02
2 changed files with 20 additions and 19 deletions

4
README
View file

@ -79,8 +79,10 @@ INDEX
** hooks/archiso_loop_mnt
* img_dev= Device where archiso-image.iso reside.
* img_label= Set the filesystem label where archiso-image.iso.
Default: (unset)
* img_dev= Device where archiso-image.iso reside.
Default: (unset) or "/dev/disk/by-label/${img_label}"
* img_loop= Full path where archiso-image.iso is located on ${img_dev}
Default: (unset)