Skip to content

Commit

Permalink
Reduce the requird disk size to unzip platform.tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
xumia committed Jun 8, 2022
1 parent 96c8fba commit 677c5bf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions files/Aboot/boot0.j2
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,12 @@ extract_image() {

info "Extracting swi content"
## Unzip the image except boot0 and dockerfs archive
unzip -oq "$swipath" -x boot0 "$dockerfs" -d "$image_path"
unzip -oq "$swipath" -x boot0 "$dockerfs" "platform.tar.gz" -d "$image_path"

## Extrat the platform.tar.gz
info "Extracting platform.tar.gz"
mkdir -p $image_path/platform
tar xzf $image_path/platform.tar.gz -C $image_path/platform
rm -rf $image_path/platform.tar.gz
mkdir -p "$image_path/platform"
unzip -oqp "$swipath" "platform.tar.gz" | tar xzf - -C "$image_path/platform" $TAR_EXTRA_OPTION

## detect rootfs type
local mountstr="$(grep " $target_path " /proc/mounts)"
Expand Down

0 comments on commit 677c5bf

Please sign in to comment.