]> git.proxmox.com Git - pve-installer.git/commitdiff
unconfigured: make agetty listen on tty9
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 24 Apr 2020 13:17:26 +0000 (15:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 24 Apr 2020 13:17:28 +0000 (15:17 +0200)
it's a bit brittle and login is weird (enter root user twice, pw
doesn't matters) and once exited it's gone, but it's just for
"emergency debugging" anyway

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
unconfigured.sh

index 1d8cf7c8915fb161d0dd6ff66173e313b50bb346..3bf5367050cb1b5784a1e1ffa1a8139c3f81773c 100755 (executable)
@@ -93,6 +93,7 @@ mkdir -p /dev/pts
 mount -vt devpts devpts /dev/pts -o gid=5,mode=620
 
 if [ $proxdebug -ne 0 ]; then
+    /sbin/agetty -o '-p -- \\u' --noclear tty9 &
     echo "Dropping in debug shell inside chroot before starting installation"
     echo "type exit or CTRL-D to start installation wizard"
     debugsh