summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2016-01-27 18:41:41 +0100
committerDominique Martinet <dominique.martinet@cea.fr>2016-02-02 15:43:19 +0100
commitc695a86e35376e3397d2a39888ad4aeb34697254 (patch)
tree1f394b9aaa6f338e1d0dd075a73c558d812ac807
parentfad3daea9bbe546d9fccd1186f67e4316b84d889 (diff)
Do not require either netboot or disk
It's almost impossible to tell if netboot is enable in a subtle way, (e.g. sriov option rom) just trust users
-rwxr-xr-xkvm-wrapper.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/kvm-wrapper.sh b/kvm-wrapper.sh
index c0c5df4..31a0aeb 100755
--- a/kvm-wrapper.sh
+++ b/kvm-wrapper.sh
@@ -676,8 +676,6 @@ function kvm_start_vm ()
done
[[ -n "$KVM_CDROM" ]] && KVM_DRIVES="$KVM_DRIVES -cdrom \"$KVM_CDROM\""
- [[ "$KVM_DRIVES" == "" ]] && echo "$KVM_BOOTDEVICE" | grep -qv "n" && \
- fail_exit "Your VM $VM_NAME should at least use one cdrom or harddisk drive !\nPlease check your conf file:\n$VM_DESCRIPTOR"
local LINUXBOOT=""
[[ -n "$KVM_KERNEL" ]] && LINUXBOOT+=" -kernel \"$KVM_KERNEL\""
[[ -n "$KVM_INITRD" ]] && LINUXBOOT+=" -initrd \"$KVM_INITRD\""