Merge pull request #11545 from xnox/ppc64el

test-functions: fixup PPC64 testing
This commit is contained in:
Lennart Poettering 2019-01-26 13:55:32 +01:00 committed by GitHub
commit b3f259d056
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,11 +99,22 @@ run_qemu() {
&& KERNEL_BIN="$EFI_MOUNT/$MACHINE_ID/$KERNEL_VER/linux"
fi
CONSOLE=ttyS0
if [[ ! "$KERNEL_BIN" ]]; then
if [[ "$LOOKS_LIKE_ARCH" ]]; then
KERNEL_BIN=/boot/vmlinuz-linux
else
KERNEL_BIN=/boot/vmlinuz-$KERNEL_VER
[ "$ARCH" ] || ARCH=$(uname -m)
case $ARCH in
ppc64*)
KERNEL_BIN=/boot/vmlinux-$KERNEL_VER
CONSOLE=hvc0
;;
*)
KERNEL_BIN=/boot/vmlinuz-$KERNEL_VER
;;
esac
fi
fi
@ -150,7 +161,7 @@ root=/dev/sda1 \
raid=noautodetect \
loglevel=2 \
init=$PATH_TO_INIT \
console=ttyS0 \
console=$CONSOLE \
selinux=0 \
printk.devkmsg=on \
$_cgroup_args \