aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx14
1 files changed, 13 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index 03687b1..2faf6c6 100755
--- a/kvmx
+++ b/kvmx
@@ -463,6 +463,12 @@ function kvmx_up {
fi
fi
+ # Check if on install mode
+ if [ "$install" == "1" ]; then
+ kvmx_status
+ return
+ fi
+
if [ "$ssh_support" == "y" ]; then
let ssh_attempts="0"
echo -n "Waiting for machine to boot..."
@@ -1643,7 +1649,13 @@ function kvmx_install {
qemu-img create -f $format $image $size
fi
- kvm -m $memory -net nic,model=virtio -net user -drive file=$image -cdrom $media
+ # Basic install command
+ #kvm -m $memory -net nic,model=virtio -net user -drive file=$image -cdrom $media
+
+ # Install using kvmx_up
+ install=1
+ cdrom=$media
+ kvmx_up
}
# Serial console