summaryrefslogtreecommitdiffstats
path: root/modules.d/95hwdb/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/95hwdb/module-setup.sh')
-rw-r--r--modules.d/95hwdb/module-setup.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules.d/95hwdb/module-setup.sh b/modules.d/95hwdb/module-setup.sh
new file mode 100644
index 0000000..19112be
--- /dev/null
+++ b/modules.d/95hwdb/module-setup.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+# This file is part of dracut.
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# called by dracut
+install() {
+ inst_multiple -o \
+ /etc/udev/udev.hwdb \
+ "${udevdir}"/hwdb.bin
+
+ # Install the hosts local user configurations if enabled.
+ if [[ $hostonly ]]; then
+ inst_multiple -H -o \
+ "$udevconfdir"/hwdb.bin
+ fi
+}