aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-06-12 20:04:01 -0400
committerCara Salter <cara@devcara.com>2022-06-12 20:04:01 -0400
commit66b136fbbdbc4963de6db63e5af8eb44e0d2ae8b (patch)
tree39e67471a5ce1a4221649488c0231667dad6a214 /src
parent373f5f25375d6eb563e5c75f432d78ee7d37672c (diff)
downloadsolarlib-66b136fbbdbc4963de6db63e5af8eb44e0d2ae8b.tar.gz
solarlib-66b136fbbdbc4963de6db63e5af8eb44e0d2ae8b.zip
WIP: auto-mount ship
Diffstat (limited to 'src')
-rw-r--r--src/star.rs10
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()
}