Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some packages that have kernel.d hooks are always trying to modify vmlinuz-${version} even if dracut-uefi is used. #53299

Open
piekay opened this issue Dec 2, 2024 · 4 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@piekay
Copy link
Contributor

piekay commented Dec 2, 2024

Is this a new report?

Yes

System Info

Void 6.6.63_1 x86_64 AuthenticAMD uptodate rFF

Package(s) Affected

efibootmgr-18_1, sbsigntool-0.9.4_6

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

The packages should include a configurable hook in /etc/default, that allows a user to set the file path of the /etc/kernel.d script, so that UKIs or non standard vmlinuz paths can be affected by these hooks. The file /efi/EFI/BOOT/void/Linux-${VERSION} should be just as affected as the default /boot/vmlinuz-${VERSION}

Actual behaviour

Due to the hardcoded nature of the file paths, only /vmlinuz-${VERSION} is affected by these scripts.

Steps to reproduce

  1. Install dracut-uefi and the affected packages (efibootmgr-18_1, sbsigntool-0.9.4_6)
  2. configure the packages using /etc/default to your liking
  3. run xbps-reconfigure -fa
  4. Notice that the UKI neither gets registered by efibootmgr, nor gets signed by sbsigntool
@piekay piekay added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Dec 2, 2024
@piekay
Copy link
Contributor Author

piekay commented Dec 2, 2024

I'm currently working on updating the scripts. Only sbsigntool and efibootmgr are tested, other packages with a hook in /etc/kernel.d might be affected too.

@classabbyamp
Copy link
Member

why are you using dpkg on void?

@piekay piekay changed the title Some packages that have kernel.d are always trying to modify vmlinuz-${version} even if dracut-uefi is used. Some packages that have kernel.d hooks are always trying to modify vmlinuz-${version} even if dracut-uefi is used. Dec 2, 2024
@piekay
Copy link
Contributor Author

piekay commented Dec 2, 2024

why are you using dpkg on void?

Thanks for the hint. I just messed up the command. It's fixed now

@piekay
Copy link
Contributor Author

piekay commented Dec 2, 2024

Should get resolved with #53301 and #53303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

2 participants