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

Bring GHW clone and partition type into sdk #492

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Bring GHW clone and partition type into sdk #492

merged 4 commits into from
Sep 12, 2024

Commits on Sep 11, 2024

  1. Bring GHW clone and partition type into sdk

    Centralize the Kairos Partition and the methods for getting partitions
    from the system
    
    Signed-off-by: Itxaka <itxaka@kairos.io>
    Itxaka committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    182407c View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Fix lint

    Signed-off-by: Itxaka <itxaka@kairos.io>
    Itxaka committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    496234f View commit details
    Browse the repository at this point in the history
  2. Store disk UUID

    Signed-off-by: Itxaka <itxaka@kairos.io>
    Itxaka committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    302851f View commit details
    Browse the repository at this point in the history
  3. Add tests and improve ghw a bit more

     - Get a logger instance
     - Allow setting trace level from env vars
     - log a LOT of stuff
     - Remove uneeded Type filed. It already has FS for the same
     - Fix Paths appending with optional prefix
     - Allow Calling GetDisks with nil logger. It will create its own.
     - Get disk size and uuid
     - log on errors
    
    Signed-off-by: Itxaka <itxaka@kairos.io>
    Itxaka committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    f015ec2 View commit details
    Browse the repository at this point in the history