aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx-create44
1 files changed, 1 insertions, 43 deletions
diff --git a/kvmx-create b/kvmx-create
index 70812ff..1a825ae 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -137,7 +137,6 @@ function kvmx_config {
kvmx_user_config qcow2_compression y "Image compression (y/n)"
fi
- kvmx_user_config method custom "Bootstrap method: custom or vmdeboostrap"
kvmx_user_config bootloader grub "Bootloader: grub or extlinux"
}
@@ -160,40 +159,6 @@ fi
kvmx_sudo_run mkdir -p `dirname $image`
#
-# vmdebootstrap version
-#
-function kvmx_create_vmdebootstrap {
- # Check for requirements
- for req in vmdebootstrap; do
- kvmx_install_package $req
- done
-
- # Image format
- if [ "$format" == "qcow2" ]; then
- format="--convert-qcow2"
-
- if [ "$qcow2_compression" == "y" ]; then
- compression="-c"
- fi
- fi
-
- if [ "$booloader" == "grub" ]; then
- boot_option="--grub"
- fi
-
- # Run
- kvmx_sudo_run vmdebootstrap --verbose --image=$image --size=$size --distribution=$version \
- --mirror=$mirror --arch=$arch --hostname=$hostname.$domain $boot_option $format
-
- # Fix permissions
- kvmx_sudo_run chown -R `whoami`. `dirname $image`
-
- # Cleanup
- kvmx_sudo_run rm debootstrap.log
- kvmx_sudo_run rm ${image}.raw
-}
-
-#
# Custom version
#
function kvmx_create_custom {
@@ -508,11 +473,4 @@ EOF
}
# Dispatch
-if [ "$method" == "custom" ]; then
- kvmx_create_custom
-elif [ "$method" == "vmdebootstrap" ]; then
- kvmx_create_vmdebootstrap
-else
- echo "$BASENAME: invalid method $method"
- exit 1
-fi
+kvmx_create_custom