Skip to content

Commit 82c39e2

Browse files
change compressor fucntion
1 parent f2c7e06 commit 82c39e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/functions

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ do_debootstrap() {
176176
fi
177177

178178
if ! $no_compression; then
179-
do_compress bzip
179+
do_compress $chroot_dir
180180
fi
181181
}
182182

@@ -205,7 +205,7 @@ arch_translate() {
205205
}
206206

207207
do_second_stage() {
208-
local chroot_dir=$1
208+
chroot_dir=$1
209209
local arch=$2
210210
do_qemu_user_emulation
211211
do_chroot_ae "$chroot_dir" /bin/bash /debootstrap/debootstrap --second-stage
@@ -236,6 +236,7 @@ do_chroot_ae() {
236236
do_compress() {
237237
#compression
238238
export TARGET_FILE
239+
export chroot_dir=$1
239240
TARGET_FILE="$(basename ${chroot_dir})"
240241
if [ -n "$OVERRIDER_COMPRESSION_TYPE" ]; then
241242
case $1 in

0 commit comments

Comments
 (0)