I found that the setup-testbed failed/forgot to place the console enabling 
files.
They needed to be adapted anyway - I now have those which gives me a root 
console:

sudo nc -U /tmp/testadt/ttyhvc1
# id
id
uid=0(root) gid=0(root) groups=0(root)


ubuntu@autopkgtest:~$ cat /etc/init.d/autopkgtest
#!/bin/sh
### BEGIN INIT INFO
# Provides:          autopkgtest
# Required-Start:    \$all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
### END INIT INFO

if [ "\$1" = start ]; then
    echo "Starting root shell on hvc1 for autopkgtest"
    (setsid sh </dev/hvc1 >/dev/hvc1 2>&1) &
fi
ubuntu@autopkgtest:~$ cat /etc/systemd/system/autopkgtest.service
[Unit]
Description=autopkgtest root shell on hvc1
ConditionPathExists=/dev/hvc1

[Service]
ExecStart=/bin/sh
StandardInput=tty-fail
StandardOutput=tty
StandardError=tty
TTYPath=/dev/hvc1
SendSIGHUP=yes
# ignore I/O errors on unusable hvc1
SuccessExitStatus=0 208 SIGHUP SIGINT SIGTERM SIGPIPE

[Install]
WantedBy=multi-user.target

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1630909

Title:
  failing console access on s390x

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1630909/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to