allow starting a shell when connecting to a session running an autoinstall

This commit is contained in:
Michael Hudson-Doyle 2020-06-12 15:35:59 +12:00
parent b8c9ca2484
commit cfb31695cf
1 changed files with 8 additions and 4 deletions

View File

@ -220,10 +220,14 @@ class Subiquity(Application):
# This is a gross hack for testing in travis.
our_tty = "/dev/not a tty"
if not self.interactive() and our_tty != primary_tty:
print(
_("the installer running on {tty} will perform the "
"autoinstall").format(tty=primary_tty))
signal.pause()
while True:
print(
_("the installer running on {tty} will perform the "
"autoinstall").format(tty=primary_tty))
print()
print(_("press enter to start a shell"))
input()
os.system("cd / && bash")
self.controllers.load("Reporting")
self.controllers.Reporting.start()
self.controllers.load("Error")