@ -338,10 +338,11 @@ pub fn run(opts: Options) -> Result<()> {
let target = format! ( "{guest_arch}-unknown-linux-musl" ) ;
let target = format! ( "{guest_arch}-unknown-linux-musl" ) ;
let test_distro : Vec < ( String , PathBuf ) > = build ( Some ( & target ) , | cmd | {
let test_distro_args =
cmd . args ( [ "--package" , "test-distro" , "--profile" , "release" ] )
[ "--package" , "test-distro" , "--release" , "--features" , "xz2" ] ;
} )
let test_distro : Vec < ( String , PathBuf ) > =
. context ( "building test-distro package failed" ) ? ;
build ( Some ( & target ) , | cmd | cmd . args ( test_distro_args ) )
. context ( "building test-distro package failed" ) ? ;
let binaries = binaries ( Some ( & target ) ) ? ;
let binaries = binaries ( Some ( & target ) ) ? ;
@ -415,16 +416,9 @@ pub fn run(opts: Options) -> Result<()> {
// Preparing the `modules.alias` file inside the VM as part of
// Preparing the `modules.alias` file inside the VM as part of
// `/init` is slow. It's faster to prepare it here.
// `/init` is slow. It's faster to prepare it here.
Command ::new ( "cargo" )
Command ::new ( "cargo" )
. args ( [
. arg ( "run" )
"run" ,
. args ( test_distro_args )
"--package" ,
. args ( [ "--bin" , "depmod" , "--" , "-b" ] )
"test-distro" ,
"--bin" ,
"depmod" ,
"--release" ,
"--" ,
"-b" ,
] )
. arg ( & modules_dir )
. arg ( & modules_dir )
. status ( )
. status ( )
. context ( "failed to run depmod" ) ? ;
. context ( "failed to run depmod" ) ? ;