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

signpost: GPT priority manipulation utility #28

Merged
merged 26 commits into from Jun 13, 2019
Merged

signpost: GPT priority manipulation utility #28

merged 26 commits into from Jun 13, 2019

Commits on Jun 3, 2019

  1. signpost: Initial commit

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 3, 2019
    Configuration menu
    Copy the full SHA
    29d295b View commit details
    Browse the repository at this point in the history
  2. signpost: Fix next set logic

    After switching to partition B and before marking boot successful,
    `signpost status` displayed that next boot would use B, when GRUB
    gptprio would select A.
    
    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 3, 2019
    Configuration menu
    Copy the full SHA
    8987bf7 View commit details
    Browse the repository at this point in the history
  3. signpost: cargo update

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 3, 2019
    Configuration menu
    Copy the full SHA
    03d215c View commit details
    Browse the repository at this point in the history
  4. signpost: Add README.md

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 3, 2019
    Configuration menu
    Copy the full SHA
    d78643b View commit details
    Browse the repository at this point in the history
  5. signpost: "clear-inactive" command; expand docs

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 3, 2019
    Configuration menu
    Copy the full SHA
    0ac23ac View commit details
    Browse the repository at this point in the history
  6. signpost: Rollback errors when inactive is invalid

    There should be two states when the inactive set is priority 0: a host
    that's never updated, or a host in the process of writing a new update
    to the inactive partitions. In either state rolling back to that
    partition will break the host, so prevent that.
    
    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 3, 2019
    Configuration menu
    Copy the full SHA
    429da0a View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2019

  1. signpost: Remove type argument from PartitionSet

    This was generic from previous development and doesn't need to be
    anymore.
    
    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    2780fed View commit details
    Browse the repository at this point in the history
  2. signpost: Improve context for Error::ActiveNotInSet

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    4ef3b69 View commit details
    Browse the repository at this point in the history
  3. signpost: Clarify std::ops::Not on self.active

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    2c3d3bc View commit details
    Browse the repository at this point in the history
  4. signpost: Add readability line breaks to Error

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    235d6f5 View commit details
    Browse the repository at this point in the history
  5. signpost: Improve context for Error::InactiveInvalidRollback

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    530d873 View commit details
    Browse the repository at this point in the history
  6. signpost: Better document BlockDevice return values

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    320f730 View commit details
    Browse the repository at this point in the history
  7. signpost: Don't open disk for reading when writing

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    4098d3c View commit details
    Browse the repository at this point in the history
  8. signpost: Explain effective globs in BlockDevice

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    57a777e View commit details
    Browse the repository at this point in the history
  9. signpost: Use bit_field for GptPrio math

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    6b2990c View commit details
    Browse the repository at this point in the history
  10. signpost: Drop unclear TryFrom<fs::Metadata> for BlockDevice

    ... in favor of a functioin whose intent is much clearer.
    
    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    0b56369 View commit details
    Browse the repository at this point in the history
  11. signpost: Improve clarity of State::load

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    954127c View commit details
    Browse the repository at this point in the history
  12. signpost: More accurate checks in rollback-to-inactive

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    4fdf00d View commit details
    Browse the repository at this point in the history
  13. signpost: Remove State::set()

    When faced with the fact that this method name is awful, I struggled to
    find a good reason that a consumer of signpost as a library would care
    about what devices belonged to partition set A, as opposed to the active
    or inactive partition set.
    
    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    ded5805 View commit details
    Browse the repository at this point in the history
  14. signpost: README edits

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    d6aff6a View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2019

  1. signpost: Grammar nit

    Signed-off-by: Tom Kirchner <tjk@amazon.com>
    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 13, 2019
    Configuration menu
    Copy the full SHA
    42b345d View commit details
    Browse the repository at this point in the history
  2. signpost: Use SetSelect more consistently in State.fmt

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 13, 2019
    Configuration menu
    Copy the full SHA
    6b14e35 View commit details
    Browse the repository at this point in the history
  3. signpost: README.md grammar

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 13, 2019
    Configuration menu
    Copy the full SHA
    d3cd588 View commit details
    Browse the repository at this point in the history
  4. signpost: Clearer BlockDevice constructor name

    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 13, 2019
    Configuration menu
    Copy the full SHA
    b488b86 View commit details
    Browse the repository at this point in the history
  5. signpost: Remove confusing sentence in documentation

    This was written before we checked if GRUB would boot the inactive
    partition with `will_boot`.
    
    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 13, 2019
    Configuration menu
    Copy the full SHA
    1d22df6 View commit details
    Browse the repository at this point in the history
  6. signpost: Better docstring for State::load

    Signed-off-by: Tom Kirchner <tjk@amazon.com>
    Signed-off-by: iliana destroyer of worlds <iweller@amazon.com>
    iliana committed Jun 13, 2019
    Configuration menu
    Copy the full SHA
    66ff55e View commit details
    Browse the repository at this point in the history