Skip to content

Commit 23879b5

Browse files
committed
[update] : Added --tar-opts
1 parent 459febb commit 23879b5

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

build.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ make_tarball() {
915915
mkdir -p "${out_dir}"
916916
msg_info "Creating tarball..."
917917
cd -- "${airootfs_dir}"
918-
tar -v -J -p -c -f "${out_dir}/${tar_filename}" ./*
918+
tar -c -v -p -f "${out_dir}/${tar_filename}" "${taropt[@]}" ./*
919919
cd -- "${OLDPWD}"
920920

921921
_mkchecksum "${out_dir}/${tar_filename}"
@@ -1032,7 +1032,7 @@ make_iso() {
10321032
# Parse options
10331033
ARGUMENT=("${DEFAULT_ARGUMENT[@]}" "${@}")
10341034
OPTS=("a:" "b" "c:" "d" "e" "g:" "h" "j" "k:" "l:" "o:" "p:" "r" "t:" "u:" "w:" "x")
1035-
OPTL=("arch:" "boot-splash" "comp-type:" "debug" "cleaning" "cleanup" "gpgkey:" "help" "lang:" "japanese" "kernel:" "out:" "password:" "comp-opts:" "user:" "work:" "bash-debug" "nocolor" "noconfirm" "nodepend" "gitversion" "msgdebug" "noloopmod" "tarball" "noiso" "noaur" "nochkver" "channellist" "config:" "noefi" "nodebug" "nosigcheck" "normwork" "log" "logpath:" "nolog" "nopkgbuild" "pacman-debug" "confirm")
1035+
OPTL=("arch:" "boot-splash" "comp-type:" "debug" "cleaning" "cleanup" "gpgkey:" "help" "lang:" "japanese" "kernel:" "out:" "password:" "comp-opts:" "user:" "work:" "bash-debug" "nocolor" "noconfirm" "nodepend" "gitversion" "msgdebug" "noloopmod" "tarball" "noiso" "noaur" "nochkver" "channellist" "config:" "noefi" "nodebug" "nosigcheck" "normwork" "log" "logpath:" "nolog" "nopkgbuild" "pacman-debug" "confirm" "tar-opts:")
10361036
if ! OPT=$(getopt -o "$(printf "%s," "${OPTS[@]}")" -l "$(printf "%s," "${OPTL[@]}")" -- "${ARGUMENT[@]}"); then
10371037
#if ! readarray OPT < <(getopt -o "$(printf "%s," "${OPTS[@]}")" -l "$(printf "%s," "${OPTL[@]}")" -- "${ARGUMENT[@]}"); then
10381038
exit 1
@@ -1074,8 +1074,7 @@ while true; do
10741074
shift 2
10751075
;;
10761076
-h | --help)
1077-
_usage
1078-
exit 0
1077+
_usage 0
10791078
;;
10801079
-j | --japanese)
10811080
msg_error "This option is obsolete in AlterISO 3. To use Japanese, use \"-l ja\"." "1"
@@ -1215,6 +1214,10 @@ while true; do
12151214
nopkgbuild=true
12161215
shift 1
12171216
;;
1217+
--tar-opts)
1218+
taropt=(${2})
1219+
shift 2
1220+
;;
12181221
--)
12191222
shift
12201223
break

default.conf

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,15 @@ theme_name="alter-logo"
9393
channel_name='xfce'
9494

9595
# Build the tarball with iso.
96-
# Change the default behavior of "-k" and "--tarball".
96+
# Change the default behavior of "--tarball".
9797
tarball=false
9898

99+
# Set command line argument for tar command
100+
# It is only used for creating tarball
101+
# Change the default behavior of "--tar-opts".
102+
#taropt=(--xz)
103+
taropt=(--gzip)
104+
99105
# See the `mksquashfs` help for details on these items.
100106
# This variable overrides each build option "-c" or "-t".
101107
sfs_comp="xz"
@@ -277,9 +283,7 @@ gitversion=false
277283
# Works the same as an exclude file
278284
# Use this array for debugging only
279285
# This setting cannot be changed by an argument.
280-
additional_exclude_pkg=(
281-
282-
)
286+
additional_exclude_pkg=()
283287

284288
# Run with tee command
285289
# Set to "false" to disable logging

0 commit comments

Comments
 (0)