dynlay: rely on auto-detect fstype
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
use eyre::{Result, format_err};
|
use eyre::{format_err, Result};
|
||||||
use log::{debug, error, info, warn};
|
use log::{debug, error, info, warn};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use tokio::{fs, io::AsyncWriteExt, process::Command};
|
use tokio::{fs, io::AsyncWriteExt, process::Command};
|
||||||
@@ -60,7 +60,7 @@ impl<'t> Dynlay<'t> {
|
|||||||
|
|
||||||
// mount layer
|
// mount layer
|
||||||
info!("mounting 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());
|
let mut paths = spawn_walk_dir(mount_path.clone());
|
||||||
while let Some(result) = paths.recv().await {
|
while let Some(result) = paths.recv().await {
|
||||||
|
|||||||
Reference in New Issue
Block a user