]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/test-functions: on PPC64 use hvc0 console 11545/head
authorDimitri John Ledkov <xnox@ubuntu.com>
Tue, 20 Feb 2018 12:01:40 +0000 (12:01 +0000)
committerDimitri John Ledkov <xnox@ubuntu.com>
Sat, 26 Jan 2019 00:21:08 +0000 (00:21 +0000)
test/test-functions

index ac575ade7eedbca4d46d2fb58cc260ec0f9e6421..cb83761a6c3a440f555df028bfda199df9cfc01e 100644 (file)
@@ -99,6 +99,8 @@ 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
@@ -107,6 +109,7 @@ run_qemu() {
             case $ARCH in
                 ppc64*)
                 KERNEL_BIN=/boot/vmlinux-$KERNEL_VER
+                CONSOLE=hvc0
                 ;;
                 *)
                 KERNEL_BIN=/boot/vmlinuz-$KERNEL_VER
@@ -158,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 \