summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-01-18 01:21:59 +0800
committerLuca Boccassi <luca.boccassi@gmail.com>2023-02-15 20:00:51 +0000
commitf129d0e77c4c9a0e12ae38cd241cd49846844a80 (patch)
tree6518a9c10e5f4697ac1ab47e668330bcfa780ba9 /factory
parent0688bea1631c9ddb83cbfadfe7e0bb66ffc3e17a (diff)
downloadsystemd-f129d0e77c4c9a0e12ae38cd241cd49846844a80.tar.gz
vconsole: allow setting default keymap through build option
Allow defining the default keymap to be used by vconsole-setup through a build option. A template vconsole.conf also gets populated by tmpfiles if it doesn't exist.
Diffstat (limited to 'factory')
-rw-r--r--factory/templates/meson.build8
-rw-r--r--factory/templates/vconsole.conf.in3
2 files changed, 11 insertions, 0 deletions
diff --git a/factory/templates/meson.build b/factory/templates/meson.build
index ece2c644ff..a3ba7b166f 100644
--- a/factory/templates/meson.build
+++ b/factory/templates/meson.build
@@ -9,3 +9,11 @@ custom_target(
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
install : true,
install_dir : factory_etc_dir)
+
+custom_target(
+ 'vconsole.conf',
+ input : 'vconsole.conf.in',
+ output : 'vconsole.conf',
+ command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
+ install : true,
+ install_dir : factory_etc_dir)
diff --git a/factory/templates/vconsole.conf.in b/factory/templates/vconsole.conf.in
new file mode 100644
index 0000000000..f682487695
--- /dev/null
+++ b/factory/templates/vconsole.conf.in
@@ -0,0 +1,3 @@
+# This is the fallback vconsole configuration provided by systemd.
+
+#KEYMAP={{ SYSTEMD_DEFAULT_KEYMAP }}