Skip to content

Commit febbc24

Browse files
committed
mkosi: set default-keymap='' on Debian/Ubuntu
1 parent 1cd4211 commit febbc24

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mkosi.presets/00-base/mkosi.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
5555
UKIFY=true
5656
fi
5757

58+
# On Debian 'loadkeys us' fails
59+
if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then
60+
DEFAULT_KEYMAP=""
61+
else
62+
DEFAULT_KEYMAP="us"
63+
fi
64+
5865
CONFIGURE_OPTS=(
5966
-D sysvinit-path="$sysvinit_path"
6067
-D rootprefix="$rootprefix"
@@ -149,6 +156,7 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
149156
-D first-boot-full-preset=true
150157
-D initrd=true
151158
-D fexecve=true
159+
-D default-keymap="$DEFAULT_KEYMAP"
152160
)
153161

154162
# On debian-like systems the library directory is not /usr/lib64 but /usr/lib/<arch-triplet>/.

0 commit comments

Comments
 (0)