I did the same exercise on my reproducer and got the following pstree output:
When is switch to vtty with systemd.debug-shell=1, here what I got :
# pstree systemd-+-bash---pstree |-recovery-menu---network---systemctl---systemd-tty-ask |-systemd-journal ....
# ps root 486 473 0 08:29 tty1 00:00:00 /bin/systemd-tty-ask-password-agent
# PID 473 being systemctl start dbus.socket : root 473 466 0 08:29 tty1 00:00:00 systemctl start dbus.socket
# PID 466 being recovery-mode/options/network root 466 283 0 08:29 tty1 00:00:00 /bin/sh /lib/recovery-mode/options/network
I did the same exercise on my reproducer and got the following pstree output:
When is switch to vtty with systemd. debug-shell= 1, here what I got :
# pstree +-bash- --pstree
|-recovery- menu--- network- --systemctl- --systemd- tty-ask
|-systemd- journal
systemd-
....
# ps tty-ask- password- agent
root 486 473 0 08:29 tty1 00:00:00 /bin/systemd-
# PID 473 being systemctl start dbus.socket :
root 473 466 0 08:29 tty1 00:00:00 systemctl start dbus.socket
# PID 466 being recovery- mode/options/ network mode/options/ network
root 466 283 0 08:29 tty1 00:00:00 /bin/sh /lib/recovery-