Skip to content

Commit

Permalink
Force s390x qemu image to default to openstack config drive approach
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypoulz committed Dec 17, 2019
1 parent 9cc23c8 commit fb0ec05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cmd-build
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,16 @@ img_base=tmp/${imageprefix}-base.qcow2
# forgive me for this sin
checksum_location=$(find /usr/lib/coreos-assembler-anaconda/ -name '*CHECKSUM' | head -1)

# Hack to force qemu to default to config drive based install on s390x
platformid=qemu
if [ "$arch" == "s390x" ]; then
platformid=openstack
fi

if [ -n "${build_qemu}" ]; then
img_qemu=${imageprefix}-qemu.qcow2
run_virtinstall "${tmprepo}" "${ref}" "${PWD}"/"${img_base}" --variant=cloud
/usr/lib/coreos-assembler/gf-platformid "$(pwd)"/"${img_base}" "$(pwd)"/"${img_qemu}" qemu
/usr/lib/coreos-assembler/gf-platformid "$(pwd)"/"${img_base}" "$(pwd)"/"${img_qemu}" ${platformid}
fi

"${dn}"/write-commit-object "${tmprepo}" "${commit}" "$(pwd)"
Expand Down

0 comments on commit fb0ec05

Please sign in to comment.