Skip to content

Conversation

@frelon
Copy link
Contributor

@frelon frelon commented Nov 21, 2023

This commit adds a flavor for tumbleweed raspberry pi image that uses a after-disk hook to copy firmware into the EFI partition.

@frelon frelon force-pushed the build-disk-rpi branch 2 times, most recently from 5f557a8 to 9e1b93a Compare November 21, 2023 12:57
@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.10%. Comparing base (b4ad085) to head (4f03185).
Report is 341 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1859      +/-   ##
==========================================
+ Coverage   75.09%   75.10%   +0.01%     
==========================================
  Files          67       67              
  Lines        6869     6872       +3     
==========================================
+ Hits         5158     5161       +3     
  Misses       1340     1340              
  Partials      371      371              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@frelon frelon marked this pull request as ready for review November 23, 2023 10:22
@frelon frelon requested a review from a team as a code owner November 23, 2023 10:22
Copy link
Contributor

@davidcassany davidcassany left a comment

Choose a reason for hiding this comment

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

I'd leave the build-hooks flag change out of this PR and eventually make a follow up PR to better manage and handle this use case including build, install, upgrade and reset commands or any command that makes use of the hooks concept.

c.Flags().VarP(imgType, "type", "t", "Type of image to create")
c.Flags().StringSliceP("cloud-init", "c", []string{}, "Cloud-init config files")
c.Flags().StringSliceP("cloud-init", "c", []string{}, "Cloud-init config files to include in disk")
c.Flags().StringSlice("build-hooks", []string{}, "Paths to cloud-init config files to run during build")
Copy link
Contributor

Choose a reason for hiding this comment

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

This rename is not enough, it should be adapted within the pkg/types/v1/config.go at DiskSpec definition too.

Note for later. I am also wondering if shouldn't we make this change consistent to all commands and then have install-hooks, upgrade-hooks, reset-hooks flags.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I brought back the cloud-init-paths for now since it is needed for this PR to produce a bootable rpi disk.

I also think we should rework the hooks in a follow up PR 👍

This commit adds a flavor for tumbleweed raspberry pi image that uses a
after-disk hook to copy firmware into the EFI partition.

Signed-off-by: Fredrik Lönnegren <[email protected]>
Signed-off-by: Fredrik Lönnegren <[email protected]>
Signed-off-by: Fredrik Lönnegren <[email protected]>
Copy link
Contributor

@davidcassany davidcassany left a comment

Choose a reason for hiding this comment

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

Awesome 👍

@frelon frelon enabled auto-merge (squash) November 29, 2023 12:35
@frelon frelon merged commit d2d2889 into rancher:main Nov 29, 2023
@frelon frelon deleted the build-disk-rpi branch December 12, 2023 14:04
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.

4 participants