Skip to content

Commit

Permalink
loadkeys: Don't look for keymap in the current directory
Browse files Browse the repository at this point in the history
Now loadkeys first tries to look for a keymap in the current directory.
This behavior is not intuitive and leads to problems. It appears that
loadskeys triggers all inodes in the current cwd. This might lead to
deadlocks during boot, because the system might not be ready to trigger
an autofs this early.

To solve this I exclude the current directory from the keymaps search
paths.

We still have ways to specify a different directory to search for
keymaps than the one specified on build time. The user can set the
LOADKEYS_KEYMAP_PATH environment variable to specify a different search
path.

Link: #101
Signed-off-by: Alexey Gladkov <[email protected]>
  • Loading branch information
legionus committed Aug 9, 2023
1 parent 001842c commit a770f39
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/loadkeys.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "keymap.h"

static const char *const dirpath1[] = {
"",
DATADIR "/" KEYMAPDIR "/**",
KERNDIR "/",
NULL
Expand Down

0 comments on commit a770f39

Please sign in to comment.