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