Am 17.11.18 um 20:32 schrieb Michael Biebl:
> One obvious difference between the  keymap files shipped by kbd and
> console-data is, that kbd uses a map.gz file extension whereas
> console-data uses kmap.gz.

Something like the attached patch might be sufficient for "localectl
list-keymaps". It's completely untested though.

There are other places like in find_converted_keymap() [1], which expect
a certain directory layout.

Michael

[1]
https://github.com/systemd/systemd/blob/master/src/locale/keymap-util.c#L590
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
--- systemd-239.orig/src/basic/locale-util.c
+++ systemd-239/src/basic/locale-util.c
@@ -268,19 +268,19 @@ static int nftw_cb(
         if (tflag != FTW_F)
                 return 0;
 
-        if (!endswith(fpath, ".map") &&
-            !endswith(fpath, ".map.gz"))
+        if (!endswith(fpath, ".kmap") &&
+            !endswith(fpath, ".kmap.gz"))
                 return 0;
 
         p = strdup(basename(fpath));
         if (!p)
                 return FTW_STOP;
 
-        e = endswith(p, ".map");
+        e = endswith(p, ".kmap");
         if (e)
                 *e = 0;
 
-        e = endswith(p, ".map.gz");
+        e = endswith(p, ".kmap.gz");
         if (e)
                 *e = 0;
 

Reply via email to