ksud: No need to force e2fsck, fix #858,#879
This commit is contained in:
@@ -148,11 +148,12 @@ fn check_image(img: &str) -> Result<()> {
|
|||||||
// 0: no error
|
// 0: no error
|
||||||
// 1: file system errors corrected
|
// 1: file system errors corrected
|
||||||
// https://man7.org/linux/man-pages/man8/e2fsck.8.html
|
// https://man7.org/linux/man-pages/man8/e2fsck.8.html
|
||||||
ensure!(
|
// ensure!(
|
||||||
code == Some(0) || code == Some(1),
|
// code == Some(0) || code == Some(1),
|
||||||
"Failed to check image, e2fsck exit code: {}",
|
// "Failed to check image, e2fsck exit code: {}",
|
||||||
code.unwrap_or(-1)
|
// code.unwrap_or(-1)
|
||||||
);
|
// );
|
||||||
|
info!("e2fsck exit code: {}", code.unwrap_or(-1));
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user