Re: Remote deployment






Colin Walters – Thu, 22. February 2018 20:27

Is ostree able to generate some kind of binary file containing the 
required diffs to get from one commit to another, which can be 
transferred to / copied on the ostree-host and then applied to the 
repository (similar to a git patch)?

This is what `ostree static-delta generate --filename` will do, combined
with `ostree static-delta apply-offline`.

Unfortunately it does not work the way i thought:

I've tried these steps

1.) Generating diff on host:

#ostree --repo=repo static-delta generate --to=${branch} --filename=delta.file
Generating static delta:
  From: f354e821ae25a0a4dddef1cae17ad66be8f80d68168ae91431c740fc87950de0
  To:   014e1e18df0d5d2573442f873757264ba1f7f08bb15ffec36b398b0222136ce7
modified: 26
new reachable: metadata=39 content regular=50 symlink=1
rollsum for afc270eb068f400e04d5b29069a602a4b936532dd863fbeadbf8186c17e86dd4 -> 
16f406e40fad17a9630dd380020ab80dfcdc63e333ec0bf71ffdc005466af075; crcs=15 bufs=15 total=16 matchsize=154051
rollsum for 95f6ff0377f7daedd9f9dafe12b5f5eb9f2736976942ffeb165425cc3851873c -> 
6cbd339bd721cfa48f15d2798c8c1e5a68cc2db624a6c26c2bb53dc1cb24ee7d; crcs=35 bufs=34 total=42 matchsize=130253
rollsum for 2/26 modified
processing bsdiff: [0/22]
processing bsdiff: [2/22]
processing bsdiff: [4/22]
processing bsdiff: [6/22]
processing bsdiff: [8/22]
processing bsdiff: [10/22]
processing bsdiff: [12/22]
part 1 n:52 compressed:208425 uncompressed:50015708
processing bsdiff: [14/22]
processing bsdiff: [16/22]
processing bsdiff: [18/22]
processing bsdiff: [20/22]
part 2 n:37 compressed:916513 uncompressed:1750750
uncompressed=51766458 compressed=1124938 loose=1138976
rollsum=2 objects, 284304 bytes
bsdiff=22 objects

2.) scp deploy.diff to site 

3.) apply with this command

#ostree --repo=repo static-delta apply-offline delta.file
error: Opening deltapart 
'deltas/81/ToIa4loKTd3vHK4XrWa+j4DWgWiukUMcdA_IeVDeA-AU4eGN8NXSVzRC+HN1cmS6H38IuxX_7DazmLAiITbOc/0': No such 
file or directory

What am i doing wrong?




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