Skip to content

Commit

Permalink
Use "kvm" as vm_type in the kvm fixup
Browse files Browse the repository at this point in the history
$vm_type is not set here and will always be kvm anyway.
  • Loading branch information
mlschroe committed Dec 15, 2023
1 parent e0858e8 commit b5debf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-vm-kvm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5debf6

Please sign in to comment.