From 4e9f514cd6f397714c5118af787af02b1ee42471 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 9 Sep 2022 17:30:55 +0200 Subject: [systemd-distro] Copy system's hwdb.bin --- core/modules/systemd-distro/module.build | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/modules/systemd-distro') diff --git a/core/modules/systemd-distro/module.build b/core/modules/systemd-distro/module.build index 75bcf63f..b685344b 100644 --- a/core/modules/systemd-distro/module.build +++ b/core/modules/systemd-distro/module.build @@ -14,6 +14,12 @@ build () { > "${MODULE_BUILD_DIR}/etc/systemd/system/systemd-${svc}.service" \ || perror "Could not remove umount.target from $svc" done + mkdir -p "${MODULE_BUILD_DIR}/lib/udev" + for f in /lib/udev/hwdb.bin /etc/udev/hwdb.bin; do + [ -f "$f" ] || continue + cp "$f" "${MODULE_BUILD_DIR}/lib/udev/hwdb.bin" || perror "Copy $f failed" + break + done } post_copy() { -- cgit v1.2.3-55-g7522