From: Antonio Alvarez Feijoo Date: Tue, 4 Aug 2026 06:30:16 +0000 (+0200) Subject: fix(hwdb): always install this module, except in strict hostonly mode X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;p=thirdparty%2Fdracut-ng.git fix(hwdb): always install this module, except in strict hostonly mode 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 --- diff --git a/modules.d/74hwdb/module-setup.sh b/modules.d/74hwdb/module-setup.sh index 5484155a3..e7bf71db2 100755 --- a/modules.d/74hwdb/module-setup.sh +++ b/modules.d/74hwdb/module-setup.sh @@ -3,7 +3,9 @@ # 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