geerlingguy / rpi-clone

A shell script to clone a booted disk on a Raspberry Pi.
https://rpi-clone.jeffgeerling.com/
BSD 3-Clause "New" or "Revised" License
172 stars 10 forks source link

Support cloning to a loopback device #18

Open matthijskooijman opened 3 months ago

matthijskooijman commented 3 months ago

With some additional scripting around rpi-clone, this allows cloning into a loopback-mounted image file.

This is a first step towards fixing geerlingguy/rpi-clone#9.

These changes were previously submitted at https://github.com/billw2/rpi-clone/pull/179 and have been in use in my project for a year or two before that PR was submitted recently. Now I've just rebased and reviewed them, the changes still applied without issue.

framps commented 2 months ago

I frankly didn't want to deep dive into Bills code. Given your detailed analysis I'm going to deep dive to be able to comment. But I'm busy the next couple of weeks with other stuff and it will take some time until I'm able to comment.