aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create36
1 files changed, 18 insertions, 18 deletions
diff --git a/kvmx-create b/kvmx-create
index 1a825ae..95d4d53 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -140,24 +140,6 @@ function kvmx_config {
kvmx_user_config bootloader grub "Bootloader: grub or extlinux"
}
-# Load config file
-kvmx_config_load $1
-
-# Get config parameters
-kvmx_config
-
-# Check
-if [ -e "$image" ]; then
- kvmx_user_config overwrite n "WARNING: $image already exists. Overwrite the installation? (y/n)"
-
- if [ "$overwrite" != "y" ]; then
- exit 1
- fi
-fi
-
-# Ensure base folder exists
-kvmx_sudo_run mkdir -p `dirname $image`
-
#
# Custom version
#
@@ -472,5 +454,23 @@ EOF
echo "$user:$password" | kvmx_sudo_run chroot $WORK/ chpasswd
}
+# Load config file
+kvmx_config_load $1
+
+# Get config parameters
+kvmx_config
+
+# Check
+if [ -e "$image" ]; then
+ kvmx_user_config overwrite n "WARNING: $image already exists. Overwrite the installation? (y/n)"
+
+ if [ "$overwrite" != "y" ]; then
+ exit 1
+ fi
+fi
+
+# Ensure base folder exists
+kvmx_sudo_run mkdir -p `dirname $image`
+
# Dispatch
kvmx_create_custom