hack around .keep for tarball
This commit is contained in:
parent
99488030c8
commit
0e2810b75c
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue