I updated sys-apps/hwids to v20201207 yesterday for genkernel and noticed the following non-fatal error message during initramfs generation when hwdb --update is called:
Error, empty key or value ' XKB_FIXED_VARIANT' in '/var/tmp/genkernel/gk_ROYm6weK/initramfs-eudev-temp/usr/lib/udev/hwdb.d/60-keyboard.hwdb'
I updated sys-apps/hwids to v20201207 yesterday for genkernel and noticed the following non-fatal error message during initramfs generation when
hwdb --update
is called:I was able to track this down to the following change: https://github.com/gentoo/hwids/commit/f30071bbebc0685c645783024cae0f9f213a1458#diff-7b9ba9c30888b1b5b1fa008f185e4efaff34eaff2c13f35c38b2ae0416cd891eR1840
However, this seems to be valid now. Systemd applied the following change few months ago, https://github.com/systemd/systemd/commit/afe87974dd57741f74dd87165b251886f24c859f.
This PR will backport the change and also update
import_file()
andinsert_data()
functions with changes from https://github.com/systemd/systemd/commit/6a34639e76b8b59233a97533b13836d5a44e8d4a.