From: Paul Hänsch Date: Thu, 19 Sep 2019 13:57:52 +0000 (+0200) Subject: use etc/default/keyboard file for keyboard config X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=268f9f6a6b42c42182fc434dd274ce86ae710b8b;p=blast use etc/default/keyboard file for keyboard config --- diff --git a/modules/default.mk b/modules/default.mk index 0dfe450..4bacb5c 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -10,15 +10,11 @@ endif export DEBCONF RPICONFIG -ifndef keyboard -keyboard := English (US) - English (Macintosh) -endif - define DEBCONF := ${DEBCONF} keyboard-configuration keyboard-configuration/model select Generic 105-key (Intl) PC -keyboard-configuration keyboard-configuration/variant select ${keyboard} +keyboard-configuration keyboard-configuration/variant select English (US) - English (Macintosh) endef define RPICONFIG := @@ -32,10 +28,11 @@ _install: _debconf_selections _debconf_selections: ${SYSROOT} printf '%s\n' "$${DEBCONF}" |chroot "$${SYSROOT}" debconf-set-selections -_config: _keyboard -_keyboard: ${CFGROOT} _debconf_selections - rm "$${CFGROOT}/etc/default/keyboard" - chroot "$${CFGROOT}" dpkg-reconfigure --default-priority -u keyboard-configuration +ifdef keyboard + _config: _keyboard +endif +_keyboard: ${CFGROOT} + sed -Ei 's;^XKBLAYOUT=.*$$;XKBLAYOUT="${keyboard}";;' "$${CFGROOT}/etc/default/keyboard" ifdef raspi _config: _raspberry_config