unpack the tarball now and then

This commit is contained in:
parazyd 2017-04-15 18:17:02 +02:00
parent fd2f5ec4ec
commit b7fedae885
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)
if [[ -f $bootstrap_tgz ]]; then
act "tarball found already in $_dest"
notice "tarball found already in $_dest"
else
notice "Creating boostrap tarball in $bootstrap_tgz"
silly
@ -138,14 +138,13 @@ bootstrap_tar_unpack() {
ckreq || return 1
if [[ -f "${unpath}/.keep" ]]; then
act "skipping tarball unpack"
else
sudo rm -rf ${unpath}
mkdir -p ${unpath}
silly
sudo tar xfp $bootstrap_tgz -C ${unpath}
sudo mkdir -p ${unpath}/{boot,dev,sys,proc}
else
error "no .keep file found. exiting..."
zerr
exit 1
fi
cat <<EOF | sudo tee ${strapdir}/postunpack >/dev/null