Re: inspecting a static delta file to retrieve start and end commit



So far, I've been able to find this round about way to figure out the src commit:

davis@Precision-7920:/tmp/$ mkdir ostree-repo
davis@Precision-7920:/tmp/$ ostree --repo=ostree-repo init --mode=bare
davis@Precision-7920:/tmp/$ ostree --repo=ostree-repo static-delta apply-offline ostree-static-delta-97e1-1439
error: Commit 97e104a287d7a91d2e9cc172cb9f0b7298fd39c52add15a9784d20b9f362eae1, which is the delta source, is not in repository
davis@Precision-7920:/tmp/$

I would think there should be an ostree commit that just inspects the file and shows this information. Please let me know what you think.

Thank you,

Davis

On Fri, Feb 15, 2019 at 4:41 PM Davis Roman <davis roman84 gmail com> wrote:
Hello,

We're using ostree static deltas extensively and I've been recording the src and dst commit in the delta's filename.

However, I'm running into situations where people forget to specify the starting commit or even specify the wrong commit in the filename.

I image that this information is already encoded in the delta file itself.

Is there a way via the command line to retrieve the start and end commits or perhaps use something to dd to extract the bytes out of the file itself?

Thank you,

davis


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]