You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
composefs: Type 1 kernel path on the ESP is too long for HP G10 firmware, boot hangs #2585
On several HP G10 business laptops, firmware hangs (black screen, hard lock) when systemd-boot loads the kernel from the Type 1 directory that the composefs backend writes to the ESP. Every stock install produces a path like this:
That is 163 characters. Reporters in projectbluefin/dakota#1648 bisected the limit by truncating the directory name by hand: a 160 character kernel path boots, 163 hangs. The kernel, initrd and kernel arguments were unchanged, only the directory was renamed.
Affected so far:
HP EliteBook 845 G10 (AMD, BIOS V82)
HP EliteBook 840 G10 (Intel graphics)
HP ZBook Firefly 14 G10 A
We ship Dakota with --composefs-backend and systemd-boot by default, which is probably why this has not shown up elsewhere.
Loader entries
Original entry generated by bootc (hangs):
title Bluefin
version 20260921
linux /EFI/Linux/bootc_composefs-023cf0e317ee0f30a2f8229ed4734a136a406ed38e46abc7406948c732f23071a7b13ca652775b32d540c8b7eaba8f540fb0f479f39527fd2d2ef05094d2e050/vmlinuz
initrd /EFI/Linux/bootc_composefs-023cf0e317ee0f30a2f8229ed4734a136a406ed38e46abc7406948c732f23071a7b13ca652775b32d540c8b7eaba8f540fb0f479f39527fd2d2ef05094d2e050/initrd
options root=LABEL=root rw composefs=023cf0e317ee0f30a2f8229ed4734a136a406ed38e46abc7406948c732f23071a7b13ca652775b32d540c8b7eaba8f540fb0f479f39527fd2d2ef05094d2e050 <image kargs> rd.luks.name=<uuid>=root
sort-key bootc-bluefin-dakota-0
Longest entry that boots, with the last three hex characters of the directory removed (160 characters):
linux /EFI/Linux/bootc_composefs-023cf0e317ee0f30a2f8229ed4734a136a406ed38e46abc7406948c732f23071a7b13ca652775b32d540c8b7eaba8f540fb0f479f39527fd2d2ef05094d2e/vmlinuz
initrd /EFI/Linux/bootc_composefs-023cf0e317ee0f30a2f8229ed4734a136a406ed38e46abc7406948c732f23071a7b13ca652775b32d540c8b7eaba8f540fb0f479f39527fd2d2ef05094d2e/initrd
A fully short directory (/EFI/Linux/bootc_composefs-dakota/) also boots.
I don't have one of these machines myself, but I can build a Dakota image with a candidate fix and ask the reporters in #1648 to verify it on the affected hardware.
Versions
bootc v1.17.1
systemd-boot, Type 1 BLS entries, composefs backend
This relates to composefs/composefs-rs#159, at a quick glance it looks like we hard code sha512 for the bootc composefs repository. In theory if this were configurable, at the very least you could choose to use sha256 which would cut down on the size of the hash string and allow it to fit if space is limited like it appears to be here.
Another alternative is not naming the uki after its digest at all, but extract the osrelease metadata from it, and just ensure it's unique - if e.g. we have two UKIs with the same version metadata then we just append .1.2 etc to it.
Changing the hash digest for everything is potentially something we could support, but I think for this case is way overkill.
Triage: valid, and the Type 1 fix is small, because bootc already treats the Type 1 directory name as an opaque label. I can't reproduce the hang because it needs the HP G10 hardware. The 163 characters are expected from the code: /EFI/Linux/ (11) + bootc_composefs- (16) + 128 hex sha512 verity + /vmlinuz (8). See get_type1_dir_name.
Why Type 1 is easy. Nothing reads the deployment identity from the directory name:
BLSConfig::get_verity takes the verity from the composefs= karg for non-EFI entries.
GC collects every bootc_composefs-* directory. It keeps any directory whose name matches some entry's boot_artifact_name. That comparison is a plain string match.
Shared kernel+initrd entries already point at another deployment's directory, so "directory name ≠ deployment verity" is a supported case today.
Proposed plan (Type 1 only):
Change write_bls_boot_entries_to_disk and the entry writer in setup_composefs_bls_boot to name the directory something shorter. Two options:
Base32 of the verity, as you suggested. That is 103 characters, giving a 138-character path.
The existing sha256 "boot digest" of vmlinuz+initrd (64 hex, giving a 99-character path). bootc already computes it and stores it in the origin. Since the directory holds exactly those two files, it is the natural content key. It would also let find_vmlinuz_initrd_duplicate become a name lookup instead of re-hashing every directory on each upgrade.
I'd go with the boot digest. Either way, keep the bootc_composefs- prefix so existing GC and status code still recognise the directory.
No reader changes are needed. Existing 128-hex directories stay valid, and GC removes them once nothing references them.
Add a unit test in testutils.rs/gc.rs for an entry whose directory name ≠ verity (partly covered already) and an assertion on the maximum path length.
Rollback/backcompat. Rolling back to v1.17.0 or later is fine, because GC there already compares boot_artifact_name. An older bootc's GC compared against fsverity. It could delete a short-named directory that is still referenced, which is the same bug shared entries had. If composefs-backend installs older than 1.17 matter, this needs a release note.
UKIs are a separate, harder problem, which is what your osrelease/.1/.2 idea addresses. For EFI entries, get_verityparses the verity out of the UKI filename, and GC/status/rollback depend on that. Renaming UKIs would need another way to map an entry to its deployment (for example a composefs= in a sidecar or the origin file), which is a larger change. However, UKI paths (/EFI/Linux/bootc/bootc_composefs-<128>.efi, 165 characters) are even longer than the Type 1 path. Nobody has tested UKI boot on these machines (Dakota uses Type 1), so it's unknown whether they hit the same hang. A cheap stopgap that avoids the identity question is to base32-encode the verity in the UKI filename and teach get_verity/GC to accept both encodings. That still carries the rollback concern you mentioned, so I'd do it as a follow-up and not block the Type 1 fix on it.
Unclear:
Whether 160 is really the firmware's limit. It could be a device-path byte limit (UTF-16, so about 320+ bytes) or something in how systemd-boot builds the path, so I'd aim well under it rather than just squeezing past.
Whether the options line length matters too. It didn't in the bisect.
Verification needs the Dakota reporters' hardware, as offered in the issue.
@cgwalters-bot woah there buddy let's yes default to tracking things I comment on and considering them for prio but it needs to be relative to rest of the board and pacing breakdown vs committed epics. In this specific case...ah, I thought you were jumping to implement. OK triage is better.
But still first of all let's ensure we are comment-compressing in this case we didn't need 3 comments. The dispatch result is already the same thing as the issue comment here. In this case let's at least hide outdated comments automatically.
Activity
castrojo commentedon Oct 22, 2026
cc @jmarrero - I meant to bring this up during our meeting in ATO since this affects an entire laptop range, putting it on your radar!
jeckersb commentedon Oct 22, 2026
This relates to composefs/composefs-rs#159, at a quick glance it looks like we hard code sha512 for the bootc composefs repository. In theory if this were configurable, at the very least you could choose to use sha256 which would cut down on the size of the hash string and allow it to fit if space is limited like it appears to be here.
cgwalters commentedon Oct 23, 2026
Well, I think it'd be a lot simpler to support using e.g. https://en.wikipedia.org/wiki/Base32 encoding. There's some backcompat concerns in that old versions wouldn't understand new across rollback of course.
Another alternative is not naming the uki after its digest at all, but extract the osrelease metadata from it, and just ensure it's unique - if e.g. we have two UKIs with the same version metadata then we just append
.1.2etc to it.Changing the hash digest for everything is potentially something we could support, but I think for this case is way overkill.
cgwalters-bot commentedon Oct 23, 2026
Triage: valid, and the Type 1 fix is small, because bootc already treats the Type 1 directory name as an opaque label. I can't reproduce the hang because it needs the HP G10 hardware. The 163 characters are expected from the code:
/EFI/Linux/(11) +bootc_composefs-(16) + 128 hex sha512 verity +/vmlinuz(8). Seeget_type1_dir_name.Why Type 1 is easy. Nothing reads the deployment identity from the directory name:
BLSConfig::get_veritytakes the verity from thecomposefs=karg for non-EFI entries.bootc_composefs-*directory. It keeps any directory whose name matches some entry'sboot_artifact_name. That comparison is a plain string match.Proposed plan (Type 1 only):
Change
write_bls_boot_entries_to_diskand the entry writer insetup_composefs_bls_bootto name the directory something shorter. Two options:find_vmlinuz_initrd_duplicatebecome a name lookup instead of re-hashing every directory on each upgrade.I'd go with the boot digest. Either way, keep the
bootc_composefs-prefix so existing GC and status code still recognise the directory.No reader changes are needed. Existing 128-hex directories stay valid, and GC removes them once nothing references them.
Add a unit test in
testutils.rs/gc.rsfor an entry whose directory name ≠ verity (partly covered already) and an assertion on the maximum path length.Rollback/backcompat. Rolling back to v1.17.0 or later is fine, because GC there already compares
boot_artifact_name. An older bootc's GC compared againstfsverity. It could delete a short-named directory that is still referenced, which is the same bug shared entries had. If composefs-backend installs older than 1.17 matter, this needs a release note.UKIs are a separate, harder problem, which is what your osrelease/
.1/.2idea addresses. For EFI entries,get_verityparses the verity out of the UKI filename, and GC/status/rollback depend on that. Renaming UKIs would need another way to map an entry to its deployment (for example acomposefs=in a sidecar or the origin file), which is a larger change. However, UKI paths (/EFI/Linux/bootc/bootc_composefs-<128>.efi, 165 characters) are even longer than the Type 1 path. Nobody has tested UKI boot on these machines (Dakota uses Type 1), so it's unknown whether they hit the same hang. A cheap stopgap that avoids the identity question is to base32-encode the verity in the UKI filename and teachget_verity/GC to accept both encodings. That still carries the rollback concern you mentioned, so I'd do it as a follow-up and not block the Type 1 fix on it.Unclear:
optionsline length matters too. It didn't in the bisect.Generated-by: AI
cgwalters commentedon Oct 23, 2026
@cgwalters-bot woah there buddy let's yes default to tracking things I comment on and considering them for prio but it needs to be relative to rest of the board and pacing breakdown vs committed epics. In this specific case...ah, I thought you were jumping to implement. OK triage is better.
But still first of all let's ensure we are comment-compressing in this case we didn't need 3 comments. The dispatch result is already the same thing as the issue comment here. In this case let's at least hide outdated comments automatically.
Anyways I think for now let's just require me to ping you in an issue even for triage? Probably in the general case we need to move over stuff like this to https://github.com/bootc-dev/gh-agentic-workflows running per repo
cgwalters-bot commentedon Oct 23, 2026
cgwalters-bot commentedon Oct 23, 2026
poll: Stop treating unaddressed operator comments in bootc-dev as req…
cgwalters commentedon Nov 6, 2026
@cgwalters-bot let's get a draft of the fix from #2585 (comment)
composefs: Name Type 1 boot directories by boot digest