diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-04-23 21:33:20 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-04-23 21:33:20 -0300 |
commit | de4c11c56c90aec834212cf6ad17ee86389dcb48 (patch) | |
tree | 6559e04bff289ac2b24b80add32e6609dbacd072 /archiso2dual | |
parent | 3311f176a0045596959279c7ec44eaedd989aa2c (diff) | |
download | archiso32-de4c11c56c90aec834212cf6ad17ee86389dcb48.tar.xz |
[archiso2dual] Join split_us and split_lm in one split option.
To avoid confusion, since we always like to split these both directories
(/usr/share and /lib/modules).
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso2dual')
-rwxr-xr-x | archiso2dual/archiso2dual | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/archiso2dual/archiso2dual b/archiso2dual/archiso2dual index 3441f98..b4cd934 100755 --- a/archiso2dual/archiso2dual +++ b/archiso2dual/archiso2dual @@ -224,21 +224,7 @@ do_basic() { do_common_end } -do_split_us() { - do_common_begin - - root_image_extract - - usrshare_copy_from_root_image - usrshare_make_image - - root_image_remove_usrshare - root_image_make_image - - do_common_end -} - -do_split_lm() { +do_split() { do_common_begin root_image_extract @@ -317,9 +303,8 @@ show_help() (default to '${work_dir}')" echo " -T <profile> Type of target image (work is done on root-image.sqfs): basic: join both images, no changes in *.sqfs - split_us: 'basic' + split usr/share/ - split_lm: 'split_us' + split lib/modules/ - purge_us: 'split_us' + prune usr/share/{doc,info,man}/ + split: 'basic' + split usr/share/ and lib/modules/ from / + purge_us: 'split' + prune usr/share/{doc,info,man}/ full: 'purge_us' + prune boot/ usr/include/ usr/src/ (default to '${profile_type}')" echo " -L <label> Set a label for the disk [max 11 chars] @@ -429,7 +414,7 @@ while getopts '3:6:o:T:M:S:L:P:A:yvh' arg; do 6) isofile_x86_64="${OPTARG}" ;; o) imgname="${OPTARG}" ;; T) case "${OPTARG}" in - "basic"|"split_us"|"split_lm"|"purge_us"|"full") profile_type="${OPTARG}" ;; + "basic"|"split"|"purge_us"|"full") profile_type="${OPTARG}" ;; *) echo; echo "*ERROR*: invalid argument in -T option: ${profile_type}"; show_help 1 ;; esac ;; |