diff/patch rootfs

diff/patch rootfs

Erez D erez0001 at gmail.com
Sun Jul 13 09:17:49 IDT 2014


On Thu, Jul 10, 2014 at 4:50 PM, Amos Shapira <amos.shapira at gmail.com>
wrote:

> How about rsync's --only-write-batch/--read-batch?
>

great
this is the closest as it gets to what i wanted
only caveat, is that if the system is modified, it will not merge like
'patch' does
however, i can live with this

thanks,
erez.

>
>
>
> On 10 July 2014 18:55, Erez D <erez0001 at gmail.com> wrote:
>
>> to make it clear:
>> i need to compare two directory trees - old and new, both holds files,
>> binaries, special files, symbolic and hard links. and create a patch
>> file
>>
>> than, on another system which has a copy of the old dir tree (and
>> possible some modifications), i need to patch it to make it a 'new'
>>
>> what i would like to have is somthing like rsync, which can create a
>> diff file ...
>>
>> On Thu, Jul 10, 2014 at 10:39 AM, Rabin Yasharzadehe <rabin at rabin.io>
>> wrote:
>> > I was just about to write the same suggesting,
>> > on my current Android ROM (OmniROM) i have update system called
>> OpenDelta
>> > which use xdelta to create the the update images.
>> >
>> > you can look at the code in github -
>> > https://github.com/omnirom/android_packages_apps_OpenDelta
>> >
>> > --
>> > Rabin
>> >
>> >
>> > On Thu, Jul 10, 2014 at 10:34 AM, shimi <linux-il at shimi.net> wrote:
>> >>
>> >> On Thu, Jul 10, 2014 at 9:08 AM, Erez D <erez0001 at gmail.com> wrote:
>> >>>
>> >>> hello
>> >>>
>> >>>
>> >>> i am dealing with rootfs images  i install on embedded linux
>> >>>
>> >>> from time to time i update the rootfs - add some file, remove other,
>> >>> update others, mknod etc ...
>> >>>
>> >>> currently, when i do this, i need to reinstall the image
>> >>>
>> >>> i am looking to create a patch, i can patch an old rootfs to update it
>> >>>
>> >>> however, diff does not handle create file, remove file, special files
>> >>> and binary files very well
>> >>>
>> >>> i am looking for a tool that can do that.
>> >>>
>> >>> anyone ?
>> >>>
>> >>>
>> >>
>> >> If modifying an _image_ is your purpose, and you want to avoid
>> >> distributing the whole image, and you can do that 'offline' (i.e. you
>> have
>> >> two partitions, one active, second for upgrade and boot from - so you
>> don't
>> >> touch a system with a mounted filesystem), and you have your way to
>> manage
>> >> this versioning (i.e. you know for a fact what the previous image blob
>> is,
>> >> so what you need is really the blocks that changed from it) - maybe
>> take a
>> >> look at http://xdelta.org/
>> >>
>> >> -- Shimi
>> >>
>> >>
>> >> _______________________________________________
>> >> Linux-il mailing list
>> >> Linux-il at cs.huji.ac.il
>> >> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>> >>
>> >
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il at cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>
>
>
> --
>  [image: View my profile on LinkedIn]
> <http://www.linkedin.com/in/gliderflyer>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140713/74d81d1c/attachment-0001.html>


More information about the Linux-il mailing list