Skip to content

Commit 4f42e39

Browse files
committed
fix
1 parent 965facd commit 4f42e39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

debian/usability-misc.postinst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ generate_grub_keyboard_layouts_maybe() {
5858
## Test run of 'localectl' was successful.
5959
if ischroot; then
6060
true "INFO: Skipping 'set-grub-keymap --build-all' because postinst is running in chroot, ok."
61+
return 0
6162
else
6263
## Use '--no-update-grub' because this postinst script will run 'update-grub' if available anyhow.
6364
if set-grub-keymap --build-all --no-update-grub >/dev/null 2>&1; then
@@ -67,6 +68,9 @@ generate_grub_keyboard_layouts_maybe() {
6768
return 0
6869
fi
6970
fi
71+
else
72+
true "INFO: Skipping 'set-grub-keymap --build-all' because localectl failed, ok."
73+
return 0
7074
fi
7175
fi
7276

0 commit comments

Comments
 (0)