Skip to content

Conversation

@Itxaka
Copy link
Member

@Itxaka Itxaka commented Dec 23, 2024

No description provided.

Signed-off-by: Itxaka <itxaka@kairos.io>
@Itxaka Itxaka requested a review from a team December 23, 2024 15:07
@codecov
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.42%. Comparing base (7d163cb) to head (bb7edc6).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #146   +/-   ##
=======================================
  Coverage   15.42%   15.42%           
=======================================
  Files          10       10           
  Lines        1621     1621           
=======================================
  Hits          250      250           
  Misses       1355     1355           
  Partials       16       16           

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

Signed-off-by: Itxaka <itxaka@kairos.io>
Copy link
Contributor

@jimmykarily jimmykarily left a comment

Choose a reason for hiding this comment

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

Good job!

We should create some new commands in Auroraboot to expose these. Now they are only usable through the base command (the "declarative" one).

func Raw2Azure(source string) (string, error) {
internal.Log.Logger.Info().Str("source", source).Msg("Converting raw disk to Azure VHD")
name := fmt.Sprintf("%s.vhd", source)
// Copy raw to new image with VHD appended
Copy link
Contributor

Choose a reason for hiding this comment

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

Not "copying" since there is only one copy of the file at any time.

Suggested change
// Copy raw to new image with VHD appended

Reserved [427]byte // This field contains zeroes.
}

// Lots of magic numbers here, but they are all defined in the VHD format spec
Copy link
Contributor

Choose a reason for hiding this comment

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

😵‍💫

@Itxaka Itxaka merged commit 95281d6 into main Jan 2, 2025
11 checks passed
@Itxaka Itxaka deleted the raw_disk_output branch January 2, 2025 08:38
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.

3 participants