]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(hwdb): always install this module, except in strict hostonly mode main
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 4 Aug 2026 06:30:16 +0000 (08:30 +0200)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Tue, 4 Aug 2026 14:02:50 +0000 (07:02 -0700)
This module is not being installed in any hostonly mode, which causes udev rules
that use the built-in hwdb program to fail. Always install it at least in sloppy
hostonly mode, and issue a warning in strict hostonly mode. This way, there
won't be any surprises with udev rules not working, and it can be manually
omitted if someone wants to save space.

Fixes #2534

modules.d/74hwdb/module-setup.sh

index 5484155a323e13d6ecac9569b85130742e90c779..e7bf71db2cb4a26eeb184560c9b1a9865e003b2c 100755 (executable)
@@ -3,7 +3,9 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 check() {
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 check() {
-    if [[ $hostonly ]]; then
+    if [[ $hostonly_mode == "strict" ]]; then
+        dwarn "hwdb: module not automatically included in strict hostonly" \
+            "mode, udev rules that use the built-in hwdb program will fail."
         return 255
     fi
 
         return 255
     fi