-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add target for rpi disk #1859
Add target for rpi disk #1859
Conversation
5f557a8
to
9e1b93a
Compare
86a85d6
to
74e4a42
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1859 +/- ##
==========================================
+ Coverage 75.29% 75.30% +0.01%
==========================================
Files 67 67
Lines 6825 6828 +3
==========================================
+ Hits 5139 5142 +3
Misses 1315 1315
Partials 371 371 ☔ View full report in Codecov by Sentry. |
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'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.
cmd/build-disk.go
Outdated
@@ -105,7 +105,8 @@ func NewBuildDisk(root *cobra.Command, addCheckRoot bool) *cobra.Command { | |||
c.Flags().Bool("expandable", false, "Creates an expandable image including only the recovery image") | |||
c.Flags().Bool("unprivileged", false, "Makes a build runnable within a non-privileged container, avoids mounting filesystems (experimental)") | |||
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") |
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.
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.
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.
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 👍
d2360a1
to
1ba600d
Compare
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 <fredrik.lonnegren@suse.com>
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
1ba600d
to
7e7703c
Compare
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
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.
Awesome 👍
This commit adds a flavor for tumbleweed raspberry pi image that uses a after-disk hook to copy firmware into the EFI partition.