diff options
author | Cara Salter <cara@devcara.com> | 2022-06-12 20:04:01 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-06-12 20:04:01 -0400 |
commit | 66b136fbbdbc4963de6db63e5af8eb44e0d2ae8b (patch) | |
tree | 39e67471a5ce1a4221649488c0231667dad6a214 /src/star.rs | |
parent | 373f5f25375d6eb563e5c75f432d78ee7d37672c (diff) | |
download | solarlib-66b136fbbdbc4963de6db63e5af8eb44e0d2ae8b.tar.gz solarlib-66b136fbbdbc4963de6db63e5af8eb44e0d2ae8b.zip |
WIP: auto-mount ship
Diffstat (limited to 'src/star.rs')
-rw-r--r-- | src/star.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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<u8> = 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() } |