From 3a737fc50c8b5e366d134a1a07bf91cbc022a705 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Tue, 4 Aug 2026 08:30:16 +0200 Subject: [PATCH] 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 --- modules.d/74hwdb/module-setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.3