diff options
Diffstat (limited to 'kvmx-create')
-rwxr-xr-x | kvmx-create | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/kvmx-create b/kvmx-create index 9d956ab..64a66ec 100755 --- a/kvmx-create +++ b/kvmx-create @@ -197,6 +197,16 @@ function kvmx_create_vmdebootstrap { # Custom version # function kvmx_create_custom { + # Check dependencies + DEPENDENCIES="sudo apt qemu-img sed awk tr head debootstrap chroot" + __kvmx_check_dependencies + + # Check for package requirements + #for req in debootstrap parted apt-transport-https; do + for req in debootstrap parted; do + kvmx_install_package $req + done + if [ -z "$TMP" ]; then TMP="/tmp" fi @@ -231,12 +241,6 @@ function kvmx_create_custom { fi fi - # Check for requirements. - #for req in debootstrap parted apt-transport-https; do - for req in debootstrap parted; do - kvmx_install_package $req - done - if [ -z "$image_type" ] || [ "$image_type" == "file" ]; then echo "Creating image file..." #kvmx_sudo_run dd if=/dev/zero of=$image bs=$size count=1 |