Skip to content

Commit b4d9dbe

Browse files
committed
improved error handling
1 parent dbe36da commit b4d9dbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

debian/usability-misc.postinst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ generate_grub_keyboard_layouts_maybe() {
5858
if ischroot; then
5959
true "INFO: Skipping 'set-grub-keymap --build-all' because postinst is running in chroot, ok."
6060
else
61-
set-grub-keymap --build-all || true
61+
if ! set-grub-keymap --build-all; then
62+
printf '%s\n' "INFO: Minor issue. Command 'set-grub-keymap --build-all' failed. This means, the GRUB boot menu will have no keyboard layout selection menu, which is a minor usability feature. For most users, no action is required. If you know to need this feature, please execute 'sudo set-grub-keymap --build-all' (in sysmaint session)."
63+
fi
6264
fi
6365
fi
6466
fi

0 commit comments

Comments
 (0)