ksud: use bind mount to serve module webui

This commit is contained in:
weishu
2024-02-22 16:23:20 +08:00
parent 92a14ab0a8
commit 53fd829a6b
3 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ pub fn mount_tmpfs(dest: impl AsRef<Path>) -> Result<()> {
}
#[cfg(any(target_os = "linux", target_os = "android"))]
fn bind_mount(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<()> {
pub fn bind_mount(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<()> {
info!(
"bind mount {} -> {}",
from.as_ref().display(),