Skip to content

Commit 10547dd

Browse files
committed
fix
1 parent 08b9dda commit 10547dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

debian/usability-misc.postinst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ 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-
if ! set-grub-keymap --build-all >/dev/null 2>&1; then
61+
## Use '--no-update-grub' because this postinst script will run 'update-grub' if available anyhow.
62+
if ! set-grub-keymap --build-all --no-update-grub >/dev/null 2>&1; then
6263
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)."
6364
fi
6465
fi

0 commit comments

Comments
 (0)