hack around .keep for tarball

This commit is contained in:
parazyd 2017-02-15 16:32:37 +01:00
parent 99488030c8
commit 0e2810b75c
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 6 additions and 6 deletions

View File

@ -138,14 +138,14 @@ bootstrap_tar_unpack() {
ckreq || return 1
if [[ -f "${unpath}/.keep" ]]; then
error "no .keep file found. exiting..."
zerr
exit 1
else
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

View File

@ -167,7 +167,7 @@ image_raw_as_strapdir() {
notice "mounting raw image to strapdir"
sudo mount ${loopdevice}p1 $strapdir
echo 1 | sudo tee ${strapdir}/.keep >/dev/null ## hack? XXX: bootstrap_tar_unpack couldn't see it
popd
}
@ -193,6 +193,6 @@ image_qcow2_as_strapdir() {
notice "mounting qcow2 image to strapdir"
sudo mount ${loopdevice}p1 $strapdir || zerr
echo 1 | sudo tee ${strapdir}/.keep >/dev/null ## hack? XXX: bootstrap_tar_unpack couldn't see it
popd
}