You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
true"INFO: Skipping 'set-grub-keymap --build-all' because update-grub is unavailable, ok."
54
+
true"INFO: Skipping 'set-grub-keymap --build-all' because command 'update-grub' is unavailable, ok."
55
55
return 0
56
56
fi
57
57
58
58
## > /usr/bin/set-grub-keymap: ERROR: Cannot proceed with generating GRUB keymap because requirements are unavailable. The 'ckbcomp' program is unavailable in the PATH environment variable or not installed. Is package 'console-setup' or 'console-setup-mini' installed?
59
59
if!command -v ckbcomp >/dev/null 2>&1;then
60
-
true"INFO: Skipping 'set-grub-keymap --build-all' because ckbcomp is unavailable, ok."
60
+
true"INFO: Skipping 'set-grub-keymap --build-all' because command 'ckbcomp' is unavailable, ok."
61
61
return 0
62
62
fi
63
63
64
-
if! [ -d /boot/grub/kb_layouts ];then
65
-
if timeout --kill-after 5 5 localectl &>/dev/null;then
66
-
## Test run of 'localectl' was successful.
67
-
if ischroot;then
68
-
true"INFO: Skipping 'set-grub-keymap --build-all' because postinst is running in chroot, ok."
69
-
return 0
70
-
else
71
-
## Use '--no-update-grub' because this postinst script will run 'update-grub' if available anyhow.
72
-
if set-grub-keymap --build-all --no-update-grub >/dev/null 2>&1;then
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)."
76
-
return 0
77
-
fi
78
-
fi
79
-
else
80
-
true"INFO: Skipping 'set-grub-keymap --build-all' because localectl failed, ok."
81
-
return 0
82
-
fi
64
+
if [ -d /boot/grub/kb_layouts ];then
65
+
true"INFO: Skipping 'set-grub-keymap --build-all' because file '/boot/grub/kb_layouts' already exists, ok."
66
+
return 0
83
67
fi
84
68
69
+
## Use '--no-update-grub' because this postinst script will run 'update-grub' if available anyhow.
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)."
0 commit comments