Bug#833849: systemd: localed fails to start if /etc/default/keyboard is missing
Simon McVittie
smcv at debian.org
Tue Aug 9 13:07:58 BST 2016
Package: systemd
Version: 231-1
Severity: normal
Tags: patch
I'm using systemd on an embedded Debian derivative that doesn't routinely
populate /etc/default/keyboard (our target devices don't normally have
keyboards, so it would be meaningless). On this system, localed doesn't
start when activated via D-Bus:
systemd-localed[9146]: Failed to read locale data: No such file or directory
This appears to be because the upstream code to load a Red Hat-specific
X11 keyboard configuration file tolerates it not existing, but the
Debian patch to load /etc/default/keyboard instead does not tolerate
ENOENT.
To fix this, I applied the patch
0001-x11_read_data-tolerate-absence-of-etc-default-keyboa.patch
(this is a forward-port to 231, the one I initially used was for an
earlier systemd version and touched the same code in a different file)
just after Use-Debian-specific-config-files.patch in the patch
series, then squashed it into that commit to get the attached
0001-Use-Debian-specific-config-files.patch (again, this is a
forward-port).
I'm not attaching a proposed debdiff because the resulting diff between
diffs is basically impossible to review :-)
S
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x11_read_data-tolerate-absence-of-etc-default-keyboa.patch
Type: text/x-diff
Size: 933 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160809/04ce8a7b/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-Debian-specific-config-files.patch
Type: text/x-diff
Size: 15266 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160809/04ce8a7b/attachment-0001.patch>
More information about the Pkg-systemd-maintainers
mailing list