]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Install: use kvmx_up
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Jun 2018 16:21:32 +0000 (13:21 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Jun 2018 16:21:32 +0000 (13:21 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 03687b1961453f0b097ee2478f7308ad74646e0d..2faf6c6af369ca0e7a0a1b4676fd4564964cce50 100755 (executable)
--- 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