Skip to content

Commit 4d8a384

Browse files
cgwaltersjlebon
authored andcommitted
cmdlib: Explain to people they can set COSA_NO_KVM
It's OK, it will just be slow. In some cases e.g. "I just want to inject some kernel arguments in a custom AMI building from a Mac", the performance hit is OK.
1 parent 2e6bae9 commit 4d8a384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmdlib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ preflight_kvm() {
105105

106106
if test -z "${COSA_NO_KVM:-}"; then
107107
if ! test -c /dev/kvm; then
108-
fatal "Missing /dev/kvm"
108+
fatal "Missing /dev/kvm; you can set COSA_NO_KVM=1 to bypass this at the cost of performance."
109109
fi
110110
if ! [ -w /dev/kvm ]; then
111111
if ! has_privileges; then

0 commit comments

Comments
 (0)