kiwi-el8/test/unit/system
Robert Schneider 845b5270b8 Warn if keymap is unsupported via systemd
Some OS don't support the way systemd is dealing with keymaps (e.g.
Debian, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790955).
If we try to set the keymap using `systemd-firstboot --keymap`, this
will fail, and the error message from `systemd-firstboot` is misleading:
it states that the keymap is not installed.

I couldn't find out how to reliably detect if systemd's keymap
management is supported, so instead, we provide a hint in the error
message if `systemd-firstboot --keymap` fails that the reason could be
that it's unsupported.

Fixes #2904

More generic keymap/systemd error message + dedent

Adds test of warning if keymap setting unsupported

Fix linter complaints about formatting

Run keymap check under chroot

We're interested in the capabilities of the target system, since we also
run `systemd-firstboot --keymap` in there.

Fixup for setup_test after chroot'ing localectl

Remove localectl call

It talks to systemd.

Fix tests for keymap
2025-11-28 16:25:59 +01:00
..
root_import Drop insecure and unsupported md5 digest 2024-12-19 11:26:07 +01:00
__init__.py Re-structure unit tests folders 2019-10-21 14:00:05 +02:00
identifier_test.py Make mbr-id deterministic 2025-07-02 08:49:43 +02:00
kernel_test.py Use unittest.mock from core python everywhere 2024-02-18 22:15:30 +01:00
mount_test.py Add label attribute for <partition> section 2025-07-08 16:37:38 +02:00
prepare_test.py Improve unit test for archive target_dir 2025-01-30 21:26:00 +01:00
profile_test.py Added <oem-ramdisk-size> element 2025-04-09 18:17:32 +02:00
result_test.py Allow string versions and test "word" versions 2024-08-23 10:01:27 -04:00
root_bind_test.py Drop /dev/pts from bind mount locations 2024-12-10 13:14:52 -05:00
root_init_test.py Use unittest.mock from core python everywhere 2024-02-18 22:15:30 +01:00
setup_test.py Warn if keymap is unsupported via systemd 2025-11-28 16:25:59 +01:00
shell_test.py Added new post disk sync script hook 2020-06-06 16:29:24 +02:00
size_test.py Use unittest.mock from core python everywhere 2024-02-18 22:15:30 +01:00
uri_test.py Use unittest.mock from core python everywhere 2024-02-18 22:15:30 +01:00
users_test.py Use unittest.mock from core python everywhere 2024-02-18 22:15:30 +01:00