This commit is contained in:
teldra 2022-02-09 09:56:09 +01:00
parent 8bb990465f
commit 26d0611b6c
2 changed files with 5 additions and 3 deletions

View File

@ -26,9 +26,11 @@ config() {
sed -i "/^GRUB_CMDLINE_LINUX_DEFAULT/s/=\"/=\"rd.lvm.vg=vg_${TARGETNAME_UNDERSCORE} /" /etc/default/grub
fi
if ! grep -q rd.console.keymap /etc/default/grub; then
if ! [ "${KEY_LANG}" == "en" ]; then
if ! grep -q rd.console.keymap /etc/default/grub; then
sed -i "/^GRUB_CMDLINE_LINUX_DEFAULT/s/=\"/=\" rd.vconsole.keymap=${L2} /" /etc/default/grub
fi
fi
fi
uuid=$(blkid -o value -s UUID /dev/mapper/vg_${TARGETNAME_UNDERSCORE}-swap)

View File

@ -26,6 +26,6 @@ packages() {
config() {
enable_service dbus sddm
if ! [ "${KEY_LANG}" == "en" ]; then
echo "export LANG=${L2}.UTF-8" > /etc/sv/sddm/conf
echo "export LANG=${L1}.UTF-8" > /etc/sv/sddm/conf
fi
}