unpack the tarball now and then

This commit is contained in:
parazyd 2017-04-15 18:17:02 +02:00
parent 8ad0d444e3
commit 9461b3b87b
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 4 additions and 5 deletions

View File

@ -116,7 +116,7 @@ bootstrap_tar_pack() {
local _dest=$(dirname $bootstrap_tgz) local _dest=$(dirname $bootstrap_tgz)
if [[ -f $bootstrap_tgz ]]; then if [[ -f $bootstrap_tgz ]]; then
act "tarball found already in $_dest" notice "tarball found already in $_dest"
else else
notice "Creating boostrap tarball in $bootstrap_tgz" notice "Creating boostrap tarball in $bootstrap_tgz"
silly silly
@ -138,14 +138,13 @@ bootstrap_tar_unpack() {
ckreq || return 1 ckreq || return 1
if [[ -f "${unpath}/.keep" ]]; then if [[ -f "${unpath}/.keep" ]]; then
act "skipping tarball unpack"
else
sudo rm -rf ${unpath}
mkdir -p ${unpath} mkdir -p ${unpath}
silly silly
sudo tar xfp $bootstrap_tgz -C ${unpath} sudo tar xfp $bootstrap_tgz -C ${unpath}
sudo mkdir -p ${unpath}/{boot,dev,sys,proc} sudo mkdir -p ${unpath}/{boot,dev,sys,proc}
else
error "no .keep file found. exiting..."
zerr
exit 1
fi fi
conf_print_sourceslist | sudo tee $strapdir/etc/apt/sources.list >/dev/null conf_print_sourceslist | sudo tee $strapdir/etc/apt/sources.list >/dev/null