test: use a correct kernel binary on ppc64le machines
Ubuntu calls the kernel binary as `vmlinux-*`, but RHEL/CentOS uses
the "standard" `vmlinuz-` prefix.
Follow-up to eaa602cb14.
This commit is contained in:
committed by
Luca Boccassi
parent
33e82f3ef3
commit
46db176f8c
+7
-5
@@ -347,12 +347,14 @@ run_qemu() {
|
||||
[ "$ARCH" ] || ARCH=$(uname -m)
|
||||
case $ARCH in
|
||||
ppc64*)
|
||||
KERNEL_BIN="/boot/vmlinux-$KERNEL_VER"
|
||||
CONSOLE=hvc0
|
||||
;;
|
||||
# Ubuntu ppc64* calls the kernel binary as vmlinux-*, RHEL/CentOS
|
||||
# uses the "standard" vmlinuz- prefix
|
||||
[[ -e "/boot/vmlinux-$KERNEL_VER" ]] && KERNEL_BIN="/boot/vmlinux-$KERNEL_VER" || KERNEL_BIN="/boot/vmlinuz-$KERNEL_VER"
|
||||
CONSOLE=hvc0
|
||||
;;
|
||||
*)
|
||||
KERNEL_BIN="/boot/vmlinuz-$KERNEL_VER"
|
||||
;;
|
||||
KERNEL_BIN="/boot/vmlinuz-$KERNEL_VER"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user