Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
natsumerinchan committed Mar 4, 2024
1 parent e084c43 commit 1d70100
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions userspace/ksud/src/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,18 @@ pub fn mount_overlayfs(
"mount_overlayfs_fsopen failed: {:?}, trying fallback method.",
e
);

mount_overlayfs_fallback(&lowerdir_config, upperdir, workdir, dest)?;
if let Err(e) =
mount_overlayfs_fallback(&lowerdir_config, upperdir, workdir, dest)
{
warn!(
"mount overlayfs for root failed: {:?}",
e
);
} else {
info!(
"mount overlayfs for root by mount_overlayfs_fallback success."
);
}
}
Ok(())
}
Expand Down Expand Up @@ -304,8 +314,7 @@ pub fn mount_overlay(
mount_seq.sort();
mount_seq.dedup();

mount_overlayfs(module_roots, root, upperdir, workdir, root)
.with_context(|| "mount overlayfs for root failed")?;
mount_overlayfs(module_roots, root, upperdir, workdir, root)?;
for mount_point in mount_seq.iter() {
let Some(mount_point) = mount_point else {
continue;
Expand Down

0 comments on commit 1d70100

Please sign in to comment.