diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 19:46:56 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 19:46:56 -0300 |
commit | 3331ae5e118f9f53c65e479b5a98381b4463fc87 (patch) | |
tree | c973f31624e28e96abaeab0586b0ad6c75a29b25 | |
parent | 697017619877106c21884aac72fb392e392db96b (diff) | |
download | kvmx-3331ae5e118f9f53c65e479b5a98381b4463fc87.tar.gz kvmx-3331ae5e118f9f53c65e479b5a98381b4463fc87.tar.bz2 |
Install: boot first from CD media
-rwxr-xr-x | kvmx | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 } |