mirror of https://github.com/cirruslabs/tart.git
Validate that a disk is not amd64 (#673)
To improve UX for cases like #672
This commit is contained in:
parent
bad37b129c
commit
bf03873c8d
|
|
@ -140,6 +140,12 @@ struct Run: AsyncParsableCommand {
|
|||
throw ValidationError("Suspending VMs with shared directories is not supported")
|
||||
}
|
||||
}
|
||||
|
||||
for disk in disk {
|
||||
if disk.hasSuffix("-amd64.iso") {
|
||||
throw ValidationError("Seems you have a disk targeting x86 architecture (hence amd64 in the name). Please use an 'arm64' version of the disk.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
|
|
|
|||
Loading…
Reference in New Issue