File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ def create_configuration_file(args):
4141 config .write (f"FINAL_JOBS={ args .cores } \n " )
4242 config .write (f"INTERNAL_CI={ args .internal_ci or False } \n " )
4343 config .write (f"INTERACTIVE={ args .interactive } \n " )
44+ config .write (f"QEMU={ args .qemu } \n " )
4445 config .write (f"BARE_METAL={ args .bare_metal or (args .qemu and args .interactive )} \n " )
4546 if (args .bare_metal or args .qemu ) and not args .kernel :
4647 if args .repo or args .external_sources :
Original file line number Diff line number Diff line change @@ -283,6 +283,10 @@ download_source_line() {
283283 fname=" ${fname:- $(basename " ${upstream_url} " )} "
284284 if ! [ -e " ${fname} " ]; then
285285 for mirror in $( randomize " ${MIRRORS} " ) ; do
286+ # In qemu SimpleMirror is not running on the guest os, use qemu IP
287+ case " ${QEMU} -${mirror} " in ' True-http://127.0.0.1' * )
288+ mirror=" http://10.0.2.2${mirror# ' http://127.0.0.1' } "
289+ esac
286290 mirror_url=" ${mirror} /${fname} "
287291 echo " ${mirror_url} "
288292 curl --fail --retry 3 --location " ${mirror_url} " --output " ${fname} " || true && break
You can’t perform that action at this time.
0 commit comments