Merge pull request #19 from vbatts/rebase_cruft

BuildSourceImage: remove cruft from the rebase during rewrite
This commit is contained in:
Valentin Rothberg 2019-09-11 08:46:50 +02:00 committed by GitHub
commit 8faa7452f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1032,13 +1032,6 @@ main() {
work_dir="$(_mktemp_d)"
fi
_debug "image layout: ${img_layout}"
# setup rootfs, from that OCI layout
local unpack_dir="${work_dir}/unpacked/${IMAGE_DIGEST/:/\/}"
if [ ! -d "${unpack_dir}" ] ; then
unpack_img "${img_layout}" "${unpack_dir}"
fi
_debug "unpacked dir: ${unpack_dir}"
_debug "rootfs dir: ${rootfs}"
# clear prior driver's info about source to insert into Source Image