← Back to issue list

Please include .*.hmac files by default in stage and prime

View original Github issue

Metadata

Project
snapcraft
Number
#4310
Type
issue
State
open
Author
xnox
Labels
Created
2023-08-07 16:09:06+00:00
Updated
2025-03-13 18:37:12+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description when staging FIPS builds of packages that include hmac files - i.e. `.vmlinuz-5.15.0-1000-fips.hmac` corresponding to `vmlinuz-5.15.0-1000-fips` file, the `.*.hmac` files are not copied from CRAFT_PART_INSTALL into stage, and not copied from stage to prime. I guess none of the hidden files are currently copied by default (probably good), but `.*.hmac` files should be copied, as otherwise everything is broken. Please ensure that `.*.hmac` are included in the default copy file patterns to stage and to prime. ### To Reproduce n/a ### Environment n/a ### snapcraft.yaml ```yaml override-prime: | cp "$CRAFT_PART_INSTALL"/.kernel.efi-*.hmac "$CRAFT_PRIME"/.kernel.efi.hmac craftctl default ``` ### Relevant log output ```shell n/a ``` ### Additional context _No response_

Evaluation history

No evaluation history available.