From 66b136fbbdbc4963de6db63e5af8eb44e0d2ae8b Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sun, 12 Jun 2022 20:04:01 -0400 Subject: WIP: auto-mount ship --- src/star.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/star.rs b/src/star.rs index 75368cd..d62d91c 100644 --- a/src/star.rs +++ b/src/star.rs @@ -216,6 +216,16 @@ impl Star { } }; + let mut dev_buf: Vec = vec![]; + crate::templates::disk_xml( + &mut buf, + format!("/var/lib/libvirt/images/{}", ship.make_pretty_name()) + )?; + + let dev_buf = String::from_utf8(dev_buf).unwrap(); + + + dom.try_into() } -- cgit v1.2.3