unpack the tarball now and then
This commit is contained in:
parent
8ad0d444e3
commit
9461b3b87b
|
|
@ -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
|
||||
|
||||
conf_print_sourceslist | sudo tee $strapdir/etc/apt/sources.list >/dev/null
|
||||
|
|
|
|||
Loading…
Reference in New Issue