[archiso2dual] Refactor the code

Notable changes:
* -R option added. Used to specify a file with a list of files or directories
     to remove from root-image.sqfs. This option only works with -T full.
     A list of files/directories that will be removed is printed.
* -T purge_us profile removed, now is managed via -R option.

* Profiles looks now:
  -T <profile>     Type of target image (work is done on root-image.sqfs):
         basic:    join both images, no changes in root-image
         split:    'basic' + split out usr/share/ and lib/modules/ from root-image
         full:     'split' + remove specified directories (with -R) from root-image

* Code is now a bit small made by some refactions.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2010-04-23 23:01:15 -03:00
parent de4c11c56c
commit 180d9b1cc5
3 changed files with 67 additions and 132 deletions

View file

@ -0,0 +1,7 @@
# files/directories to remove from root-image.sqfs
boot
usr/include
usr/share/doc
usr/share/info
usr/share/man
usr/src