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

Add boot-firmware command #176

Closed
wants to merge 6 commits into from
Closed

Conversation

anpep
Copy link
Collaborator

@anpep anpep commented Jan 9, 2023

This PR adds support for the boot-firmware command (spec), which does some initialization prior to starting the Pebble daemon on Termus.

Feedback is greatly appreciated, especially on the usage of build tags and how unit tests are structured.

This PR is kind of blocked on #201. After #201 is merged, I will remove the ad-hoc wrappers of the mount/umount syscalls here and use osutil.Mount() and osutil.Unmount().

 * Implement boot-firmware command
 * Run boot-firmware by default on Termus when no arguments are
   provided to Pebble and basic bootstrap checks pass.
@anpep anpep requested review from flotter and benhoyt January 9, 2023 08:51
Copy link
Contributor

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

Thanks for this! I've left a bunch of comments, some minor, a few more major. My main question is whether we need the build tag at all (it seems to me removing it would simplify quite a bit).

cmd/pebble/cmd_boot_firmware.go Outdated Show resolved Hide resolved
cmd/pebble/cmd_boot_firmware.go Outdated Show resolved Hide resolved
cmd/pebble/cmd_boot_firmware.go Outdated Show resolved Hide resolved
cmd/pebble/cmd_boot_firmware.go Outdated Show resolved Hide resolved
cmd/pebble/cmd_boot_firmware.go Outdated Show resolved Hide resolved
internal/boot/bootstrap_termus_test.go Outdated Show resolved Hide resolved
internal/boot/bootstrap_termus_test.go Outdated Show resolved Hide resolved
internal/boot/util_termus.go Outdated Show resolved Hide resolved
internal/boot/util_termus_test.go Outdated Show resolved Hide resolved
internal/boot/util_termus_test.go Outdated Show resolved Hide resolved
@anpep anpep requested a review from benhoyt January 11, 2023 11:44
@anpep anpep marked this pull request as ready for review January 18, 2023 10:14
internal/boot/util_termus.go Outdated Show resolved Hide resolved
internal/boot/bootstrap_termus.go Outdated Show resolved Hide resolved
cmd/pebble/cmd_boot_firmware.go Outdated Show resolved Hide resolved
 * The `boot` package has been renamed to `bootstrap`
 * Build variant boilerplate has been removed from the `bootstrap`
   package, and it's been substituted by a variant-specific
   implementation of the `boot-firmware` command.
@anpep anpep requested a review from flotter January 19, 2023 17:03
@anpep anpep requested a review from niemeyer February 21, 2023 12:41
@anpep anpep marked this pull request as draft March 3, 2023 09:27
@anpep anpep removed request for niemeyer and benhoyt March 30, 2023 09:02
@anpep anpep self-assigned this Apr 18, 2023
@anpep anpep marked this pull request as ready for review April 18, 2023 13:12
@niemeyer
Copy link
Contributor

Per our agreements, closing as this is moving elsewhere now.

@niemeyer niemeyer closed this May 29, 2023
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