From 45dcc460ffeb579b0234b0e8e077b30384c7587d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 30 Jul 2018 11:03:10 -0300 Subject: Drop vmdebootstrap as it will be descontinued See https://lists.debian.org/msgid-search/aeb59515ee63c658e40927a401fd1b200747a168.camel@liw.fi --- kvmx-create | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) (limited to 'kvmx-create') 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" } @@ -159,40 +158,6 @@ fi # Ensure base folder exists 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 # @@ -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 -- cgit v1.2.3