Dracut 113_eos-1 reporting error hwdb: module not automatically included in strict hostonly mode, udev rules that use the built-in hwdb program will fail. on initfs re-build

I ended up upgrading the Dracut package from Dracut 112_eos-1 to Dracut 113_eos-1 and got the following during the kernel rebuild:

:: Running post-transaction hooks...
(1/9) Creating temporary files...
(2/9) Reloading system manager configuration...
(3/9) Reloading user manager configuration...
(4/9) Enqueuing marked services...
(5/9) Arming ConditionNeedsUpdate...
(6/9) Running kernel-install...
Running kernel-install for 7.3.5-zen1-1-zen
dracut[W]: hwdb: module not automatically included in strict hostonly mode, udev rules that use the built-in hwdb program will fail.
dracut[W]: hwdb: module not automatically included in strict hostonly mode, udev rules that use the built-in hwdb program will fail.
(7/9) Updating icon theme caches...
(8/9) Checking which packages need to be rebuilt
foreign	zen-browser-bin
(9/9) Updating the desktop file MIME type cache...

I did try adding hwdb and re-build:

❯ sudo dracut-rebuild
Running dracut for linux-zen-7.3.5-zen1-1-zen
dracut[W]: hwdb: module not automatically included in strict hostonly mode, udev rules that use the built-in hwdb program will fail.
sed: can't read /var/tmp/dracut.d25SZIW/initramfs/usr/lib/systemd/system/systemd-tmpfiles-setup.service: No such file or directory
sed: can't read /var/tmp/dracut.dOCfcCI/initramfs/usr/lib/systemd/system/systemd-tmpfiles-setup.service: No such file or directory

I have since downgraded to Dracut 112_eos-1

@dalto , just in case you have feedback on the issue. Thanks.

Are you using strict hostonly mode?

What does cat /etc/dracut.conf.d/* show?

Also, that it is only a warning. Was it causing any problems?

  1. Are you using strict hostonly mode? dalto.

Assume yes based on the setting. This is being used on my Thinkpad T470s laptop.

  1. Also, that it is only a warning. Was it causing any problems?

I’m not sure if it is causing a problem. I saw the error, then tried add hwdb manually and then got the sed errors:

sed: can't read /var/tmp/dracut.d25SZIW/initramfs/usr/lib/systemd/system/systemd-tmpfiles-setup.service: No such file or directory
sed: can't read /var/tmp/dracut.dOCfcCI/initramfs/usr/lib/systemd/system/systemd-tmpfiles-setup.service: No such file or directory

Output of Dracut config files:

❯ cat /etc/dracut.conf.d/*
add_dracutmodules+=" bluetooth "
omit_dracutmodules+=" network cifs nfs nbd brltty "
compress="zstd"
force_drivers+=" i915 "
dracutmodules+=" hwdb "
add_dracutmodules+=" resume "
hostonly_mode=strict

Directory contents:

❯ ls
Permissions Size User Date Modified Name
.rw-r--r--    33 root 27 Oct 14:20  󱁻 ble.conf
.rw-r--r--    68 root 27 Apr 05:58  󱁻 eos-defaults.conf
.rw-r--r--    24 root 20 Oct 12:59  󱁻 eos_intel_i915.conf
.rw-r--r--    24 root 28 Nov 12:56   hwdb.conf.old
.rw-r--r--    30 root 27 Oct 14:15  󱁻 resume-from-hibernate.conf
.rw-r--r--    21 root 27 Oct 14:14  󱁻 small.conf

I have since removed “dracutmodules+=” hwdb " which I thought might address the warnings.

It should be add_dracutmodules+=" hwdb "

Alternatively, remove hostonly_mode=strict

I went ahead and changed to the proper settiing add_dracutmodules+=" hwdb " and then upgraded dracut again and got the same warning:

❯ sudo pacman -S dracut
resolving dependencies...
looking for conflicting packages...

Package (1)         Old Version  New Version  Net Change

endeavouros/dracut  112-1        113_eos-1      0.02 MiB

Total Installed Size:  1.45 MiB
Net Upgrade Size:      0.02 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                  [-----------------------------------] 100%
(1/1) checking package integrity                                [-----------------------------------] 100%
(1/1) loading package files                                     [-----------------------------------] 100%
(1/1) checking for file conflicts                               [-----------------------------------] 100%
:: Processing package changes...
(1/1) upgrading dracut                                          [-----------------------------------] 100%
:: Running post-transaction hooks...
(1/5) Reloading system manager configuration...
(2/5) Enqueuing marked services...
(3/5) Arming ConditionNeedsUpdate...
(4/5) Running kernel-install...
Running kernel-install for 7.3.5-zen1-1-zen
dracut[W]: hwdb: module not automatically included in strict hostonly mode, udev rules that use the built-in hwdb program will fail.
(5/5) Checking which packages need to be rebuilt

/etc/dracut.conf.d 󰌾 took 46s
❯ sudo dracut --force --regenerate-all
dracut[W]: hwdb: module not automatically included in strict hostonly mode, udev rules that use the built-in hwdb program will fail.

I feel it should not give the warning now that I have manually added it.

Just checked dracut 103 release notes and they separated hwdb.

I looked at the commit that caused this. It wasn’t being included in 112 either.

It is just the warning that is new.

I opened an issue upstream for it but I think it is safe to disregard that message for now if everything has been working for you.