Skip to content

Commit

Permalink
build-vm-kvm: use vmlinuxbe/initrdbe for bigendian on power if exist
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfinder committed Jul 1, 2016
1 parent 96713ff commit 0b79108
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-vm-kvm
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ vm_verify_options_kvm() {
vm_kernel=/boot/vmlinuxle
vm_initrd=/boot/initrdle
fi
if test -e /boot/vmlinuxbe -a -e /boot/initrdbe ; then
if test "$BUILD_ARCH" = ppc -o "$BUILD_ARCH" = ppc64 ; then
vm_kernel=/boot/vmlinuxbe
vm_initrd=/boot/initrdbe
fi
fi
grep -q "pSeries" /proc/cpuinfo && kvm_device=scsi-hd # no virtio on pSeries
grep -q "PowerNV" /proc/cpuinfo || kvm_device=scsi-hd # no virtio on ppc != power7 yet
;;
Expand Down

0 comments on commit 0b79108

Please sign in to comment.