aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-11 13:21:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-11 13:21:32 -0300
commit607a5b91bc887f90655b7f08e76804ea41b4befd (patch)
tree269f051bd9cf479a8ff2f19596f55b1411ab65a7
parent1de3bbfce9c50961e7739d54c6b9a0b95fe700f2 (diff)
downloadkvmx-607a5b91bc887f90655b7f08e76804ea41b4befd.tar.gz
kvmx-607a5b91bc887f90655b7f08e76804ea41b4befd.tar.bz2
Install: use kvmx_up
-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