4

I find myself building up lots of versions of SD images as I incrementally develop a working system. Is there a way to manage this better, such as by capturing the SD image backup not as a img/gz but in a way that git can version control?

Grateful for any advice on how to approach this with dd plus any words of wisdom on the general approach.

geotheory
  • 575
  • 3
  • 10
  • 20

2 Answers2

1

My approach would be somehow different, but I think its worth to try it:

Clone this repo: https://github.com/Metrological/buildroot and try to build image with it. It's quite straightforward.

Then, you can make changes to it and keep record with git easily.

That is what I do for my RPI projects and it works great. Performances and very good (better than with Raspbian or Arch) and you have full control over whole OS.

10robinho
  • 726
  • 8
  • 17
0

As long as you don't have any requirements on real external HW (usage of GPIO et al) an alternate approach would be to run the image on kvm/qemu. Then you can create as many snapshots as you need.

framp
  • 896
  • 7
  • 17