-
Notifications
You must be signed in to change notification settings - Fork 169
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
create_disk: add support for bootfs_metadata_csum_seed image.yaml knob #2228
create_disk: add support for bootfs_metadata_csum_seed image.yaml knob #2228
Conversation
This will tell COSA to set the metadata_csum_seed filesystem feature for the boot filesystem. This helps us not have to run a filesystem check before running tune2fs to randomize the filesystem UUID on first boot. See coreos/fedora-coreos-tracker#735 for more context. Depends on coreos/coreos-assembler#2228
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor stylistic nit for consistency.
24bc21b
to
c09cb44
Compare
Add support for a bootfs_metadata_csum_seed image.yaml knob that tells us to enable the metadata_csum_seed ext4 filesystem feature. This is gated behind an image.yaml knob because support for this feature flag was only recently added to grub. https://lists.gnu.org/archive/html/grub-devel/2021-06/msg00031.html This helps us not have to run a filesystem check before running tune2fs to randomize the filesystem UUID on first boot. See coreos/fedora-coreos-tracker#735 for more context. The knob in image.yaml will look like: ``` bootfs_metadata_csum_seed: true ```
c09cb44
to
d734007
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
# flag was only recently added to grub. | ||
# https://lists.gnu.org/archive/html/grub-devel/2021-06/msg00031.html | ||
if [ "${bootfs_metadata_csum_seed}" == "true" ]; then | ||
bootargs="-O metadata_csum_seed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need some spacing here or below in the ext4verity
path to separate option flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, the local version of my patch (on my aarch64 machine) had that, but I missed it when I made the changes on my desktop and pushed them up. fix in #2230
This will tell COSA to set the metadata_csum_seed filesystem feature for the boot filesystem. This helps us not have to run a filesystem check before running tune2fs to randomize the filesystem UUID on first boot. See coreos/fedora-coreos-tracker#735 for more context. Depends on coreos/coreos-assembler#2228
This will tell COSA to set the metadata_csum_seed filesystem feature for the boot filesystem. This helps us not have to run a filesystem check before running tune2fs to randomize the filesystem UUID on first boot. See coreos/fedora-coreos-tracker#735 for more context. Depends on coreos/coreos-assembler#2228
This will tell COSA to set the metadata_csum_seed filesystem feature for the boot filesystem. This helps us not have to run a filesystem check before running tune2fs to randomize the filesystem UUID on first boot. See coreos/fedora-coreos-tracker#735 for more context. Depends on coreos/coreos-assembler#2228
Add support for a bootfs_metadata_csum_seed image.yaml knob that tells
us to enable the metadata_csum_seed ext4 filesystem feature.
This is gated behind an image.yaml knob because support for this feature
flag was only recently added to grub.
https://lists.gnu.org/archive/html/grub-devel/2021-06/msg00031.html
This helps us not have to run a filesystem check before running tune2fs
to randomize the filesystem UUID on first boot. See
coreos/fedora-coreos-tracker#735 for more
context.
The knob in image.yaml will look like: