Skip to content

Commit 965facd

Browse files
committed
fix
1 parent a1b5b3d commit 965facd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

debian/usability-misc.postinst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ generate_grub_keyboard_layouts_maybe() {
5555

5656
if ! [ -d /boot/grub/kb_layouts ]; then
5757
if timeout --kill-after 5 5 localectl &>/dev/null; then
58+
## Test run of 'localectl' was successful.
5859
if ischroot; then
5960
true "INFO: Skipping 'set-grub-keymap --build-all' because postinst is running in chroot, ok."
6061
else
@@ -63,6 +64,7 @@ generate_grub_keyboard_layouts_maybe() {
6364
printf '%s\n' "INFO: Command 'set-grub-keymap --build-all' success."
6465
else
6566
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)."
67+
return 0
6668
fi
6769
fi
6870
fi

0 commit comments

Comments
 (0)