dynlay: rely on auto-detect fstype

This commit is contained in:
Mikaël Cluseau
2026-04-22 15:32:28 +02:00
parent b1bee39653
commit 8d36882fbd
+2 -2
View File
@@ -1,4 +1,4 @@
use eyre::{Result, format_err};
use eyre::{format_err, Result};
use log::{debug, error, info, warn};
use std::path::PathBuf;
use tokio::{fs, io::AsyncWriteExt, process::Command};
@@ -60,7 +60,7 @@ impl<'t> Dynlay<'t> {
// mount layer
info!("mounting layer");
sudo("mount", &["-t", "squashfs", lay_path, &mount_path_str]).await?;
sudo("mount", &[lay_path, &mount_path_str]).await?;
let mut paths = spawn_walk_dir(mount_path.clone());
while let Some(result) = paths.recv().await {