← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2112237] Re: hwdb.bin not available in initramfs

 

Hello Robert, or anyone else affected,

Accepted systemd into noble-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/systemd/255.4-1ubuntu8.11 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
noble to verification-done-noble. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-noble. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: systemd (Ubuntu Noble)
       Status: Triaged => Fix Committed

** Tags added: verification-needed verification-needed-noble

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2112237

Title:
  hwdb.bin not available in initramfs

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Focal:
  Triaged
Status in systemd source package in Jammy:
  Triaged
Status in systemd source package in Noble:
  Fix Committed
Status in systemd source package in Oracular:
  Won't Fix
Status in systemd source package in Plucky:
  Fix Released

Bug description:
  [Impact]
  Devices that rely on hwdb metadata for proper naming or configuration may not function as expected during initramfs boot.
  The issue is that systemd currently does not include the hwdb database in the initramfs, despite the fact that udev rules
  triggered during early boot can rely on it.

  This can result in:
  - Network interfaces being named generically or inconsistently
  - Missing metadata required by certain udev rules to configure hardware correctly
  - Confusion or misbehavior in early provisioning and installation environments

  This can be observed in any environments using devices that rely on
  metadata from hwdb for correct naming.

  The core problem is that the initramfs environment behaves inconsistently compared to the root filesystem environment due to
  missing hwdb data, even though the same udev rules run in both.

  This issue has been resolved with upstream commit:
  https://salsa.debian.org/systemd-team/systemd/-/commit/e3955d1ca26b94b918ca000837f75c0342e77ad7

  [Test Case]
  Use hardware with known hwdb-dependent behavior.
  Without access to such hardware, scenario can be verified using custom hwdb rules:
  (assuming a VM with virtio interface)
  cat /sys/class/net/enp1s0/device/../modalias
  pci:v00001AF4d00001041sv00001AF4sd00001100bc02sc00i00

  nano /etc/udev/hwdb.d/99-custom-net-names.hwdb
  pci:v00001AF4d00001041*
    ID_NET_NAME_PATH=customvirtio0

  build hwdb:
  systemd-hwdb --usr update

  trigger modified hooks:
  update-initramfs -u

  reboot into initramfs:
  check if hwdb.bin is present
  check if udev applies new interface name

  [Where problems could occur]
  This change affects the systemd-udev initramfs hook, ensuring the hwdb database is installed into the initramfs.
  This does not change udev behavior itself, but makes static metadata available in the initramfs.

  Potential areas of concern:
  - Slight increase in initramfs size.
  - If the hook fails to copy hwdb.bin, initramfs builds could break.
  - Some environments may have scripts or tools that have adapted to the absence of hwdb data in the initramfs.
  These might begin behaving differently once the metadata becomes available for instance, interfaces might be renamed, or metadata-dependent logic could change unexpectedly.

  [Other Info]
  Upstream commit:
  https://salsa.debian.org/systemd-team/systemd/-/commit/e3955d1ca26b94b918ca000837f75c0342e77ad7
  Patch is available in Plucky.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2112237/+subscriptions



References