fix(cli): remove the --arch flag

KVM runs only the host architecture, so the flag could not mean what
it suggested: a mismatched value downloaded a foreign rootfs that
extracted cleanly and died at boot with a cryptic guest-side exec
error. The flag's real job, picking the image variant to fetch, is
the library's; RunOptions.arch keeps that role and an empty value
still resolves to the host architecture.
This commit is contained in:
vhaudiquet committed 2026-10-28 13:20:02 +01:00
1 parent 29cd6af609
commit 74c3744d39
2 files changed
-6

No files matched your search

-3
View File
@@ -38,9 +38,6 @@ fn cmd_run(args: &RunArgs, cli_verbose: bool) -> std::process::ExitCode {
no_cache: args.no_cache,
..RunOptions::default()
};
if let Some(arch) = &args.arch {
options.arch = arch.clone();
}
for spec in &args.env {
match parse_env(spec) {
Ok((k, v)) => options.env.push((k, v)),