Skip to content

Convert mbr,boot,root <--> disk.img #160

Answered by stapelberg
damdo asked this question in Q&A
Discussion options

You must be logged in to vote

Can you describe what you need this for? Maybe that allows for an even better recommendation.

The partitioning logic is exposed as https://pkg.go.dev/github.com/gokrazy/tools/packer#Pack.Partition (for rtr7-recovery-init, which installs gokrazy via PXE boot). That should get you most of the way there, though perhaps we need another function to conveniently work with the offsets of each partition.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@damdo
Comment options

damdo Nov 23, 2022
Collaborator Author

@stapelberg
Comment options

@arky
Comment options

@stapelberg
Comment options

Answer selected by damdo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants