- screen->widgets.title_a_l = widget_new_label(set, 0, 0,
- _("This action requires authorisation."));
- screen->widgets.title_b_l = widget_new_label(set, 0, 0,
- _("Please enter the system password."));
+ if (screen->dev) {
+ label = talloc_asprintf(screen,
+ _("Opening encrypted device %s"),
+ screen->dev->id);
+ screen->widgets.title_a_l = widget_new_label(set, 0, 0, label);
+ screen->widgets.title_b_l = widget_new_label(set, 0, 0,
+ _("Please enter the disk password."));
+ talloc_free(label);
+ } else {
+ screen->widgets.title_a_l = widget_new_label(set, 0, 0,
+ _("This action requires authorisation."));
+ screen->widgets.title_b_l = widget_new_label(set, 0, 0,
+ _("Please enter the system password."));
+ }