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

create_disk: add support for bootfs_metadata_csum_seed image.yaml knob #2228

Merged

Conversation

dustymabe
Copy link
Member

@dustymabe dustymabe commented Jun 15, 2021

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

dustymabe added a commit to dustymabe/fedora-coreos-config that referenced this pull request Jun 15, 2021
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
Copy link
Contributor

@darkmuggle darkmuggle left a 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.

src/create_disk.sh Outdated Show resolved Hide resolved
@dustymabe dustymabe force-pushed the dusty-bootfs-csum-seed-imageyaml-knob branch from 24bc21b to c09cb44 Compare June 16, 2021 03:49
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
```
@dustymabe dustymabe force-pushed the dusty-bootfs-csum-seed-imageyaml-knob branch from c09cb44 to d734007 Compare June 16, 2021 03:50
Copy link
Contributor

@darkmuggle darkmuggle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@darkmuggle darkmuggle merged commit dd3225f into coreos:main Jun 16, 2021
# 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"
Copy link
Member

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.

Copy link
Member Author

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

dustymabe added a commit to coreos/fedora-coreos-config that referenced this pull request Jul 1, 2021
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
HuijingHei pushed a commit to HuijingHei/fedora-coreos-config that referenced this pull request Oct 10, 2023
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
HuijingHei pushed a commit to HuijingHei/fedora-coreos-config that referenced this pull request Oct 10, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants