We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6050b7a + 86256eb commit 3139155Copy full SHA for 3139155
1 file changed
vmm/src/app/qemu.rs
@@ -450,13 +450,19 @@ impl VmConfig {
450
]);
451
}
452
if let Some(rootfs) = &self.image.rootfs {
453
+ let img_ver = self.image.info.version_tuple().unwrap_or_default();
454
let ext = rootfs
455
.extension()
456
.unwrap_or_default()
457
.to_str()
458
.unwrap_or_default();
459
match ext {
460
"iso" => {
461
+ if img_ver >= (0, 5, 0) {
462
+ bail!(
463
+ "Unsupported rootfs type: {ext}. Image versions >= 0.5.0 must use verity rootfs"
464
+ );
465
+ }
466
command.arg("-cdrom").arg(rootfs);
467
468
"verity" => {
0 commit comments