ksud: use bind mount to serve module webui

This commit is contained in:
weishu
2024-02-22 16:23:20 +08:00
parent e85646fad4
commit 355b55a01d
3 changed files with 34 additions and 1 deletions

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(),