CTKArch · Forums
You are not logged in. Please Register or Login.  |  Search
Posted: Apr 22, 2011 9:13:45 am

I just stubled upon another interesting site:


The author has a "mkusb.sh" script that remasters the live session into a squashfs, thereby mergingwhatever changes you made in the live. its very similar to Calimero script, one difference is its merging it into one iso or squashfs.

Maybe a good idea for CTK also?

Its designed for gentoo, but im sure it wouldnt be difficult to adapt to CTK.
Posted: Apr 22, 2011 8:48:46 pm

Why would anyone do this, when add-ons can be merged into the iso image?

This script allows that: pastebin.com/kD3ueAPt
(such as isomaster does, but isomaster doesn't output an hybrid iso; this one does)

Of course, what you say can be done too, it's not big deal. But I don't see why you would.
Posted: Apr 23, 2011 6:37:08 am

As far as i understand the CTK script, it only adds addons to the iso, so that the iso will always grow when the user updates files or replaces one application with another one. Maybe im wrong, but if after some time every application has been updated the iso will more or less double its size.

A complete remaster would allow the user to create its own base CTK live iso and then still be able to modularize using the great addon functionality you developped.

Dont take this as critisism, im just a beginner.

Posted: Apr 25, 2011 2:07:51 pm

Note that add-ons weren't intended for updates.

But yes, you can merge stuff (add-ons, if you want) into root-image.sqfs as well, no problem with that.

Squashfs filesystems can't be mounted read-write, so you have to extract them (unsquashfs), change what you want, and re-make the sqfs file. (mksquashfs squashfs-root/ root-image.sqfs)

If you want to merge add-ons to the root-image.sqfs file, you have to do the following between unsquashfs and mksquashfs:

BASH Code:
cp -a folderwhereyouextactedyouraddon/. squashfs-root/
find squashfs-root/ -name '.wh..wh..opq' -exec bash -c 'whfile="{}";echo "removing ${whfile%/*}";rm -rf "${whfile%/*}" "${whfile}"' ;
find squashfs-root/ -name '.wh.*' ! -name '.wh..wh.*' -exec bash -c 'whfile="{}";echo "removing ${whfile//.wh.//}";rm -rf "${whfile//.wh.//}" "$whfile"' ;
find squashfs-root/ -name '.wh..wh.*' -delete

This merges the add-on into squashfs-root/, by executing its file deletions.
Posted: Apr 27, 2011 3:58:06 pm

Thx for your suggestions.
Powered by myUPB v2.2.7  ·   Creative Commons License PHP Outburst