@@ -50,13 +50,13 @@ use crate::{
5050 boot:: artifacts:: { default_qemu_dtb_dump_path, prepare_qemu_dtb_dump} ,
5151 build:: config:: Cargo ,
5252 invocation:: Invocation ,
53+ ovmf:: { Arch , FileType , Prebuilt , Source , default_cache_dir} ,
5354 process:: ProcessContext ,
5455 project:: variables:: { self , VariableScope } ,
5556 project:: { ProjectLayout , metadata} ,
5657 run:: {
5758 execution:: { RunnerExecutionSummary , RunnerExitStatus , timeout_duration} ,
5859 output_matcher:: { ByteStreamMatcher , compile_regexes, print_match_event} ,
59- ovmf_prebuilt:: { Arch , FileType , Prebuilt , Source } ,
6060 qemu_plan:: { QemuBootSource , QemuCommandPlanInput , build_qemu_command_plan} ,
6161 shell_init:: {
6262 SHELL_INIT_CHUNK_DELAY , SHELL_INIT_CHUNK_SIZE , SHELL_INIT_DELAY , ShellAutoInitMatcher ,
@@ -611,8 +611,7 @@ impl QemuRunner {
611611 . input
612612 . arch
613613 . ok_or_else ( || anyhow:: anyhow!( "Cannot determine architecture for OVMF preparation" ) ) ?;
614- let tmp = std:: env:: temp_dir ( ) ;
615- let bios_dir = tmp. join ( "ostool" ) . join ( "ovmf" ) ;
614+ let bios_dir = default_cache_dir ( ) ;
616615 fs:: create_dir_all ( & bios_dir)
617616 . await
618617 . with_path ( "failed to create directory" , & bios_dir) ?;
0 commit comments