Page 1 of 1

Merge changes to LZM/XZ

Posted: 28 Jan 2011, 08:01
by snake
Hi, Is there a tool/script already for "merge changes" for LZM/XZ packages?
Sometimes I make a customized changes to for example configuration file and want them to be included on module (and not on changes dir) on next time I activate it (somewhere else). It would work as follows:

Code: Select all

merge_changes currentmodule.lzm newmodule.lzm
Where script goes through filelist of original package (by for example using output of unsquasfs -ls) and repack these files from current filesystem snapshot to new module. Also it could change the content of currentpacket.lzm but if it is already activate, I don't know if it is possible. This command could also be named as

Code: Select all

update_module modulename.lzm
Skenario could be also that on first run, user changes root password and and some users and then run update_module for including these changes to core porteus modules.

Or am I missing a feature that is already there?

Re: Merge changes to LZM/XZ

Posted: 28 Jan 2011, 11:34
by fanthom
added to 'HOW TO's & Resources'
http://forum.porteus.org/viewtopic.php? ... 1235#p1235

Thanks for suggestion :)

Re: Merge changes to LZM/XZ

Posted: 29 Jan 2011, 01:33
by brokenman
No i don't believe there is a tool for this. I may update the modtools script to include a few more functions.

update_changes (it could create & update a changes module)
lzm2xz (both single and multiple)