aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-11 19:46:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-11 19:46:56 -0300
commit3331ae5e118f9f53c65e479b5a98381b4463fc87 (patch)
treec973f31624e28e96abaeab0586b0ad6c75a29b25 /kvmx
parent697017619877106c21884aac72fb392e392db96b (diff)
downloadkvmx-3331ae5e118f9f53c65e479b5a98381b4463fc87.tar.gz
kvmx-3331ae5e118f9f53c65e479b5a98381b4463fc87.tar.bz2
Install: boot first from CD media
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx6
1 files changed, 6 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index f093984..7db37b6 100755
--- a/kvmx
+++ b/kvmx
@@ -401,6 +401,10 @@ function kvmx_up {
cdrom_opts="-cdrom $cdrom"
fi
+ if [ ! -z "$boot" ]; then
+ boot_opts="-boot $boot_opts"
+ fi
+
if [ -z "$net" ] || [ "$net" == "user" ]; then
net_opts="user,hostfwd=tcp:127.0.0.1:$SSH-:22,hostfwd=udp:127.0.0.1:$XDMCP_PORT-:177$hostfwd -net nic,model=$nic_model"
elif [ "$net" == "tap" ]; then
@@ -437,6 +441,7 @@ function kvmx_up {
-smp $smp -cpu host -balloon virtio \
$sound_opts \
$cdrom_opts \
+ $boot_opts \
-net $net_opts \
$qemu_opts &> $LOGFILE < /dev/null &
@@ -1655,6 +1660,7 @@ function kvmx_install {
# Install using kvmx_up
install=1
cdrom=$media
+ boot="once=dc"
kvmx_up
}