Bug#961056: debian-installer: qemu-system-s390x installation fails due to incorrect serial device
Package: debian-installer
Version: 20190702+deb10u4
Severity: important
Dear Maintainer,
Running the installation inside a QEMU instance does not work in buster:
$ virt-install --arch=s390x --name test --memory 1024 --disk none \
--extra-args=console=ttyS0 \
-l http://ftp.de.debian.org/debian/dists/buster/main/installer-s390x/
Starting install...
Retrieving file kernel.debian... | 3.3 MB 00:00:00
Retrieving file initrd.debian... | 9.7 MB 00:00:01
Allocating 'virtinst-kernel.debian.mnba14e7' | 3.3 MB 00:00:00
Transferring virtinst-kernel.debian.mnba14e7 | 3.3 MB 00:00:00
Allocating 'virtinst-initrd.debian.2q88l_1j' | 9.7 MB 00:00:00
Transferring virtinst-initrd.debian.2q88l_1j | 9.7 MB 00:00:00
Connected to domain test
Escape character is ^]
[ 1.785649] Linux version 4.19.0-9-s390x (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1
+SMP Debian 4.19.118-2 (2020-04-29)
[ 1.786919] setup: Linux is running under KVM in 64-bit mode
[ 1.788555] setup: The maximum memory size is 1024MB
[ 1.790050] cpu: 1 configured CPUs, 0 standby CPUs
[ 1.822704] Write protected kernel read-only data: 8976k
...
[ 6.148235] mip6: Mobile IPv6
[ 6.148389] NET: Registered protocol family 17
[ 6.149302] mpls_gso: MPLS GSO support
[ 6.151503] registered taskstats version 1
[ 6.152310] zswap: loaded using pool lzo/zbud
[ 6.154776] AppArmor: AppArmor sha1 policy hashing enabled
[ 6.780329] Freeing unused kernel memory: 684K
[ 6.780784] Write protected read-only-after-init data: 20k
[ 6.780870] Run /init as init process
steal-ctty: No such file or directory
Than just hangs there because of the problem with the serial port name.
Installer tries to use nonexistent serial device /dev/ttyS1, while the real
name is /dev/ttysclp0. Proposed fix is here:
https://salsa.debian.org/installer-team/rootskel/-/merge_requests/2/diffs
-- System Information:
Debian Release: 10.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Reply to: