From 48f4a7f32989165ebbc9df312c0ec1f540291091 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 18 Sep 2023 11:34:56 +0200 Subject: [PATCH] move windowkeys to service file --- usr/lib/archboot/login.sh | 2 -- usr/lib/initcpio/install/archboot_base_common | 1 + .../base/etc/systemd/system/windowkeys.service | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 usr/share/archboot/base/etc/systemd/system/windowkeys.service diff --git a/usr/lib/archboot/login.sh b/usr/lib/archboot/login.sh index 6f2bbafad..469647393 100644 --- a/usr/lib/archboot/login.sh +++ b/usr/lib/archboot/login.sh @@ -140,8 +140,6 @@ if [[ "${TTY}" = "tty1" ]] ; then fi fi fi -# enable super keys console support -loadkeys windowkeys if [[ -e /usr/bin/setup ]]; then _local_mode # wait on user interaction! diff --git a/usr/lib/initcpio/install/archboot_base_common b/usr/lib/initcpio/install/archboot_base_common index 49240da96..e5d9d62ae 100644 --- a/usr/lib/initcpio/install/archboot_base_common +++ b/usr/lib/initcpio/install/archboot_base_common @@ -140,6 +140,7 @@ build () add_file "/usr/share/archboot/base/etc/systemd/system/getty@.service" "/etc/systemd/system/getty@.service" add_file "/usr/share/archboot/base/etc/systemd/system/serial-getty@.service" "/etc/systemd/system/serial-getty@.service" add_file "/usr/share/archboot/base/etc/systemd/system/systemd-sysusers.service" "/etc/systemd/system/systemd-sysusers.service" + add_file "/usr/share/archboot/base/etc/systemd/system/windowkeys.service" "/etc/systemd/system/windowkeys.service" add_file "/usr/share/archboot/base/etc/systemd/journald.conf.d/fw-tty12.conf" "/etc/systemd/journald.conf.d/fw-tty12.conf" ### disable systemd mounts: # disable configfs, debugfs, fuse, hugepages, mqueue and tracefs diff --git a/usr/share/archboot/base/etc/systemd/system/windowkeys.service b/usr/share/archboot/base/etc/systemd/system/windowkeys.service new file mode 100644 index 000000000..1549dcae2 --- /dev/null +++ b/usr/share/archboot/base/etc/systemd/system/windowkeys.service @@ -0,0 +1,10 @@ +[Unit] +Description=Load windowkeys on console + +[Service] +Type=simple +RemainAfterExit=No +ExecStart=loadkeys windowkeys + +[Install] +WantedBy=multi-user.target