From b5debf616ee470fa2cf03371d272675c3714e308 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Fri, 15 Dec 2023 12:01:34 +0100 Subject: [PATCH] Use "kvm" as vm_type in the kvm fixup $vm_type is not set here and will always be kvm anyway. --- build-vm-kvm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-vm-kvm b/build-vm-kvm index b1f55d37c..cc8aa3292 100644 --- a/build-vm-kvm +++ b/build-vm-kvm @@ -417,8 +417,8 @@ vm_fixup_kvm() { fi fi - if test -z "$VM_KERNEL" -a -z "$VM_CMDLINE" -a -f "$BUILD_ROOT/.build.cmdline.$vm_type" -a ! -L "$BUILD_ROOT/.build.cmdline.$vm_type" ; then - vm_cmdline="$(cat $BUILD_ROOT/.build.cmdline.$vm_type)" + if test -z "$VM_KERNEL" -a -z "$VM_CMDLINE" -a -f "$BUILD_ROOT/.build.cmdline.kvm" -a ! -L "$BUILD_ROOT/.build.cmdline.kvm" ; then + vm_cmdline="$(cat $BUILD_ROOT/.build.cmdline.kvm)" fi # move IO into separate I/O thread for some architectures