Skip to content

Commit

Permalink
feat(hwdb): install hwdb on demand when module is needed
Browse files Browse the repository at this point in the history
Adding a module to install hwdb. Further extensions might make only selected
part of hwdb installable, to save space. The module is not included by default.

Including the module adds 2MB of compressed data (on Fedora, the file has 12MB).

hwdb is needed in case of custom HW, like a keyboard/mouse or various interfaces.

Original PR: dracutdevs#1681
  • Loading branch information
pvalena committed Jul 23, 2023
1 parent 33a66ed commit cf01ae7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules.d/95hwdb/module-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

check() {
return 255
}

# called by dracut
install() {
inst_multiple -o "${udevdir}"/hwdb.bin
inst_multiple -H -o "${udevconfdir}"/hwdb.bin
}

0 comments on commit cf01ae7

Please sign in to comment.