Skip to content

Commit 4a2a168

Browse files
committed
Do not update grub when building GRUB keyboard layouts if running in a chroot
1 parent 1eb376c commit 4a2a168

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

debian/usability-misc.postinst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ generate_grub_keyboard_layouts_maybe() {
4444

4545
if ! [ -d /boot/grub/kb_layouts ]; then
4646
if timeout --kill-after 5 5 localectl >/dev/null; then
47-
set-grub-keymap --build-all || true
47+
if ischroot; then
48+
set-grub-keymap --build-all --no-update-grub || true
49+
else
50+
set-grub-keymap --build-all || true
51+
fi
4852
fi
4953
fi
5054

0 commit comments

Comments
 (0)