Re: diff/patch rootfs

2014-07-13 Thread Erez D
On Thu, Jul 10, 2014 at 4:50 PM, Amos Shapira amos.shap...@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

diff/patch rootfs

2014-07-10 Thread Erez D
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

Re: diff/patch rootfs

2014-07-10 Thread Oleg Goldshmidt
Erez D erez0...@gmail.com writes: 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,

Re: diff/patch rootfs

2014-07-10 Thread Constantine Shulyupin
Simple solution: 1. diff -N, --new-file treat absent files as empty Comprehensive solution: 2. create git repository on rootfs and work with git init, commit, diff, git-format-patch, am On Thu, Jul 10, 2014 at 9:08 AM, Erez D erez0...@gmail.com wrote: hello i am dealing with

Re: diff/patch rootfs

2014-07-10 Thread Erez D
On Thu, Jul 10, 2014 at 9:54 AM, Oleg Goldshmidt p...@goldshmidt.org wrote: Erez D erez0...@gmail.com writes: 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,

Re: diff/patch rootfs

2014-07-10 Thread shimi
On Thu, Jul 10, 2014 at 9:08 AM, Erez D erez0...@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

Re: diff/patch rootfs

2014-07-10 Thread Rabin Yasharzadehe
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,

Re: diff/patch rootfs

2014-07-10 Thread Erez D
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'