Skip to content

Commit 706acde

Browse files
committed
[update] : Use an array as an argument to squashfs
1 parent 2c23bc1 commit 706acde

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ make_prepare() {
965965
# Create squashfs
966966
mkdir -p -- "${isofs_dir}/${install_dir}/${arch}"
967967
msg_info "Creating SquashFS image, this may take some time..."
968-
mksquashfs "${airootfs_dir}" "${build_dir}/iso/${install_dir}/${arch}/airootfs.sfs" -noappend -comp "${sfs_comp}" ${sfs_comp_opt}
968+
mksquashfs "${airootfs_dir}" "${build_dir}/iso/${install_dir}/${arch}/airootfs.sfs" -noappend -comp "${sfs_comp}" "${sfs_comp_opt[@]}"
969969

970970
# Create checksum
971971
msg_info "Creating checksum file for self-test..."
@@ -1120,9 +1120,9 @@ while true; do
11201120
;;
11211121
-t | --comp-opts)
11221122
if [[ "${2}" = "reset" ]]; then
1123-
sfs_comp_opt=""
1123+
sfs_comp_opt=()
11241124
else
1125-
sfs_comp_opt="${2}"
1125+
sfs_comp_opt=(${2})
11261126
fi
11271127
shift 2
11281128
;;

channels/releng/config.any

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ boot_splash=false
3838

3939
# See the `mksquashfs` help for details on these items.
4040
sfs_comp="xz"
41-
sfs_comp_opt=""
41+
sfs_comp_opt=()
4242

4343
# Sets the default locale for the live environment.
4444
# You can also place a package list for that locale name and install packages specific to that locale.

default.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ tarball=false
9999
# See the `mksquashfs` help for details on these items.
100100
# This variable overrides each build option "-c" or "-t".
101101
sfs_comp="xz"
102-
sfs_comp_opt=""
102+
sfs_comp_opt=()
103103

104104

105105
# If set to true, include alteriso_info in iso root.

0 commit comments

Comments
 (0)