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
The script that is used to generate the kernel parameters table doesn't consider boot configs. This results in the wrong kernel parameters for the FIPS variants, as they should have listed fips=1.
This is going to be tricky to automate since the boot config could change depending on the variant. The script could iterate through all the variants, fetch the .img.lz4 files from the TUF repository, mount them and inspect the private partition for bootconfig.data. If the file exists, read it and include the contents in the table. An example of the contents is as follows:
The problem is the offset that has to be specified to mount the file, as it could change depending on the variant being built. To figure out the offset, one can use sfdisk and grep for BOTTLEROCKET-PRIVATE:
What's the problem
The script that is used to generate the kernel parameters table doesn't consider
boot
configs. This results in the wrong kernel parameters for the FIPS variants, as they should have listedfips=1
.See release.spec
Potential solution
This is going to be tricky to automate since the boot config could change depending on the variant. The script could iterate through all the variants, fetch the
.img.lz4
files from the TUF repository, mount them and inspect the private partition forbootconfig.data
. If the file exists, read it and include the contents in the table. An example of the contents is as follows:The problem is the
offset
that has to be specified to mount the file, as it could change depending on the variant being built. To figure out the offset, one can usesfdisk
andgrep
forBOTTLEROCKET-PRIVATE
:In this disk, the data partition was
bottlerocket-aws-ecs-2-fips-x86_64-v1.27.0.img12
Expected values for the FIPS variant:
The text was updated successfully, but these errors were encountered: