mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00:00
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:
parent
33e82f3ef3
commit
46db176f8c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue