diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-06-07 16:23:52 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-06-28 16:17:36 +1000 |
commit | d19b94a83870f7b2a41e55d7462bcf36d2b5ba0b (patch) | |
tree | 1efbe1abbff1b4b9763c402e1b3078a7d8049c87 /lib/types/types.h | |
parent | 2163af58b5e631a2a8d2acd79b541ed884ab7b57 (diff) | |
download | talos-petitboot-d19b94a83870f7b2a41e55d7462bcf36d2b5ba0b.tar.gz talos-petitboot-d19b94a83870f7b2a41e55d7462bcf36d2b5ba0b.zip |
lib: Add support for tracking boot consoles
Add tty_list and boot_tty to the config struct to keep track of
available console interfaces and the default console to set as primary
respectively.
Also add a tty field to the boot_command struct so that the current
console can be sent to the discover server during a manual boot command.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/types/types.h')
-rw-r--r-- | lib/types/types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/types/types.h b/lib/types/types.h index 6ff4620..5c5f6ed 100644 --- a/lib/types/types.h +++ b/lib/types/types.h @@ -65,6 +65,7 @@ struct boot_command { char *initrd_file; char *dtb_file; char *boot_args; + char *tty; }; struct boot_status { @@ -159,9 +160,12 @@ struct config { bool allow_writes; + char *boot_tty; char *lang; /* not user-settable */ + unsigned int n_tty; + char **tty_list; bool disable_snapshots; bool safe_mode; bool debug; |