misc fixes

This commit is contained in:
Aiden McClelland
2021-09-06 17:58:48 -06:00
parent 26af4dacf9
commit f0bfcd9c02
9 changed files with 27 additions and 9 deletions

View File

@@ -48,6 +48,13 @@ async fn init(cfg_path: Option<&str>) -> Result<(), Error> {
false,
)
.await?;
// cp -r "/var/lib/docker", "/tmp/docker-data"
embassy::disk::util::bind(
"/tmp/docker-data",
"/var/lib/journal",
false,
)
.await?;
embassy::ssh::sync_keys_from_db(todo!(), "/root/.ssh/authorized_keys").await?;
todo!("sync wifi");
embassy::hostname::sync_hostname().await?;
@@ -92,8 +99,6 @@ async fn inner_main(cfg_path: Option<&str>) -> Result<(), Error> {
})
.await
.with_kind(embassy::ErrorKind::Network)?;
} else {
embassy::sound::MARIO_COIN.play().await?;
}
Ok(())

View File

@@ -200,6 +200,8 @@ async fn inner_main(cfg_path: Option<&str>) -> Result<Option<Shutdown>, Error> {
rpc_ctx.shutdown.subscribe(),
);
embassy::sound::MARIO_COIN.play().await?;
futures::try_join!(
server.map_err(|e| Error::new(e, ErrorKind::Network)),
revision_cache_task.map_err(|e| Error::new(