Skip to content

Commit

Permalink
add fix for debian10 cloud init issue; #57 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
berkutta authored Apr 28, 2020
1 parent 9bf3e00 commit 5d5668d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kvm-install-vm
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,6 @@ _EOF_
# Assemble CI ISO disk parameters.
CI_ISO_PARAMS="$(join ',' \
${CI_ISO} \
$(param device ${CI_ISO_DEVICE}) \
${CI_ISO_EXTRA})"

# Omit the --graphics option to auto-detect.
Expand Down Expand Up @@ -730,7 +729,7 @@ _EOF_
fi

# Eject cdrom
virsh change-media ${VMNAME} --path ${VMDIR}/${VMNAME}/${CI_ISO} --eject --config &>> ${VMNAME}.log
virsh detach-disk --domain ${VMNAME} ${VMDIR}/${VMNAME}/${CI_ISO} --config &>> ${VMNAME}.log

# Remove the unnecessary cloud init files
outputn "Cleaning up cloud-init files"
Expand Down Expand Up @@ -839,7 +838,6 @@ function set_defaults ()
NETWORK_EXTRA=""
DISK_BUS=virtio
DISK_EXTRA=""
CI_ISO_DEVICE=cdrom
CI_ISO_EXTRA=""
GRAPHICS_LISTEN=localhost
GRAPHICS_EXTRA=""
Expand Down

0 comments on commit 5d5668d

Please sign in to comment.