ui/ncurses: Add safe mode indicator
[petitboot] / ui / ncurses / nc-cui.c
index 7200a81ae4bc5c5a87c5fe8437303751d5a3a033..1f163b9ed10f3323a016a28c64bc5d71d96f8c32 100644 (file)
@@ -592,6 +592,11 @@ static void cui_update_config(struct config *config, void *arg)
 
        if (cui->config_screen)
                config_screen_update(cui->config_screen, config, cui->sysinfo);
+
+       if (config->safe_mode)
+               nc_scr_status_printf(cui->current,
+                               "SAFE MODE: select '%s' to continue",
+                               "Rescan devices");
 }
 
 int cui_send_config(struct cui *cui, struct config *config)