#!/bin/bash
# sys/tool/qemu-img - Virtual disk image support (incomplete)
set -e
lib_load 'core/exec'
######
# Native dependencies
sys_tool_qemu_img_client_packages=( qemu-utils )
######
# Public interface
qemu_img_info() { has_args 1 "$@"; run qemu-img info "$1"; }
qemu_img_mount() { has_args 2 "$@"; run_sudo losetup "$1" "$2"; }
qemu_img_umount() { has_args 1 "$@"; run_sudo losetup -d "$1"; }