be smarter about mounting qcow images

some images have partition tables, some don't
This commit is contained in:
Devananda van der Veen 2012-11-21 19:00:53 -08:00
parent 90f0077cba
commit d935fc0e07

View File

@ -105,5 +105,9 @@ function mount_qcow_image() {
WORK_DIR=$(mktemp -d)
map_nbd $1
sudo mount ${NBD_DEV}p1 $WORK_DIR
if [ -e "${NBD_DEV}p1" ]; then
sudo mount ${NBD_DEV}p1 $WORK_DIR
else
sudo mount ${NBD_DEV} $WORK_DIR
fi
}