Re: diff/patch rootfs

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

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'

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, 2

Re: diff/patch rootfs

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

Re: diff/patch rootfs

2014-07-10 Thread Erez D
On Thu, Jul 10, 2014 at 9:54 AM, Oleg Goldshmidt wrote: > Erez D 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

Re: diff/patch rootfs

2014-07-09 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 wrote: > hello > > > i am dealing with rootfs images

Re: diff/patch rootfs

2014-07-09 Thread Oleg Goldshmidt
Erez D 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, i can pa