Refactor fallback shell handling, run as regular service

This patch re-enables the fallback shell handling after the big TTY
refactor.  We do this by allowing the fallback shell to run as a
regular service.

Note: this also adds the "hidden" support for 'notty' option for
      tty configurations stanzas.  This is just to pick up from
      where the kernel left us, reusing stdin + stdout.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-04-14 16:29:19 +02:00
1 parent 85a212ef93
commit c0368d2b16
6 files changed
+52 -37

No files matched your search

+5 -3
View File
@@ -36,9 +36,10 @@ struct tty {
char *dev;
char *baud;
char *term;
int noclear;
int nowait;
int nologin;
char noclear;
char nowait;
char nologin;
char notty;
};
char *tty_canonicalize (char *dev);
@@ -49,6 +50,7 @@ int tty_atcon (char *buf, size_t len);
int tty_parse_args (char *cmdline, struct tty *tty);
int tty_exec (svc_t *tty);
int tty_fallback (char *file);
#endif /* FINIT_TTY_H_ */