folbricht / desync

Alternative casync implementation
BSD 3-Clause "New" or "Revised" License
343 stars 44 forks source link

[Question] Generate only an index #256

Closed bearrito closed 9 months ago

bearrito commented 9 months ago

Is it possible to only generate an index from a blob (in this case a partition)

We are moving to using Read-Only images for our robot fleet, but currently the images deployed by OTA system are modified once they are written to partition. This means the indexes we create on the servers differs from the partition. This breaks cache/extracting.

I guess I'd be looking for something equivalent to the made up command desync index --inplace-blob /dev/sdaX sdaX.caibx

I imagine I could technically do this with extract, but we are space constrained, maybe there is some redirect magic that could be used to get it to /dev/null?

I'm aware of the option on extract of degenerateInvalidSeeds but I'd like to be able to generate the indices ahead of time so I can use them with the -ignore flag on the cache command.

bearrito commented 9 months ago

Closing. I found what I was looking for in the source code. I opened a PR updating the README with examples.