Skip to content

Commit 9617642

Browse files
committed
macos15-arm: impl Image::rebuild()
1 parent c47937a commit 9617642

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

monitor/src/image/macos13.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ pub struct MacosUtm;
8080
#[expect(unused_variables)]
8181
impl Image for MacosUtm {
8282
fn rebuild(&self, profile: &Profile, snapshot_name: &str) -> eyre::Result<()> {
83-
todo!()
83+
let profile_name = &profile.profile_name;
84+
let rebuild_guest_name = &profile.rebuild_guest_name(snapshot_name);
85+
hypervisor::utm::clone_guest(&format!("{profile_name}-clean"), rebuild_guest_name)?;
86+
Ok(())
8487
}
8588
fn delete_template(&self, profile: &Profile, snapshot_name: &str) -> eyre::Result<()> {
8689
todo!()

0 commit comments

Comments
 (0)