summaryrefslogtreecommitdiffstats
path: root/core/modules/systemd-distro
diff options
context:
space:
mode:
authorSimon Rettberg2022-09-09 17:30:55 +0200
committerSimon Rettberg2022-09-09 17:30:55 +0200
commit4e9f514cd6f397714c5118af787af02b1ee42471 (patch)
tree3374e0a4ae98f238801484af7b331a243e316f27 /core/modules/systemd-distro
parent[pulseaudio] Drop obsolete command line option to pavucontrol-slx (diff)
downloadmltk-4e9f514cd6f397714c5118af787af02b1ee42471.tar.gz
mltk-4e9f514cd6f397714c5118af787af02b1ee42471.tar.xz
mltk-4e9f514cd6f397714c5118af787af02b1ee42471.zip
[systemd-distro] Copy system's hwdb.bin
Diffstat (limited to 'core/modules/systemd-distro')
-rw-r--r--core/modules/systemd-distro/module.build6
1 files changed, 6 insertions, 0 deletions
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() {