Browse Source

toolchain: make the rootfs creation less chatty

master
Nagy Károly Gábriel 3 years ago
parent
commit
30089f0408
Signed by: karasz GPG Key ID: C6BA1070A8CBDA0C
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      target/share/docker/build.sh

+ 5
- 4
target/share/docker/build.sh

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: target/share/docker/build.sh # Filename: target/share/docker/build.sh
# Copyright (C) 2016 The OpenSDE Project
# Copyright (C) 2016 - 2020 The OpenSDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
# #
@ -12,7 +12,7 @@
# GNU General Public License can be found in the file COPYING. # GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END --- # --- SDE-COPYRIGHT-NOTE-END ---
#Description: Build an archived rootfs for docker images
#Description: Build a compressed rootfs for docker images
set -e set -e
. $base/target/share/functions.in . $base/target/share/functions.in
@ -25,11 +25,12 @@ mkdir -p $dockerdir
mkdir -p $imagelocation mkdir -p $imagelocation
cd $build_toolchain/pkgs cd $build_toolchain/pkgs
echo "Populating the root file-system (this may take some time) ..."
for pack in *.bz2; do for pack in *.bz2; do
tar -xjvf $pack -C $imagelocation
tar -xjf $pack -C $imagelocation
done done
echo "Creating root file-system (this may take some time) ..." echo "Creating root file-system (this may take some time) ..."
cd $dockerdir cd $dockerdir
time tar -cjvf rootfs.tar.bz2 -C $imagelocation .
time tar -cjf rootfs.tar.bz2 -C $imagelocation .
echo_status "Done!" echo_status "Done!"

Loading…
Cancel
Save