Skip to content

Commit 50f088b

Browse files
authored
Merge pull request #1287 from cgwalters/drop-ostree-fsck
fsck: Don't run ostree fsck
2 parents cb48526 + 5a9b8d6 commit 50f088b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

lib/src/fsck.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use std::fmt::Write as _;
1010
use std::future::Future;
1111
use std::pin::Pin;
12-
use std::process::Command;
1312

1413
use bootc_utils::iterator_split_nonempty_rest_count;
1514
use camino::Utf8PathBuf;
@@ -299,13 +298,15 @@ pub(crate) async fn fsck(storage: &Storage, mut output: impl std::io::Write) ->
299298

300299
// Run an `ostree fsck` (yes, ostree exposes enough APIs
301300
// that we could reimplement this in Rust, but eh)
302-
let st = Command::new("ostree")
303-
.arg("fsck")
304-
.stdin(std::process::Stdio::inherit())
305-
.status()?;
306-
if !st.success() {
307-
anyhow::bail!("ostree fsck failed");
308-
}
301+
// TODO: Fix https://github.com/bootc-dev/bootc/issues/1216 so we can
302+
// do this.
303+
// let st = Command::new("ostree")
304+
// .arg("fsck")
305+
// .stdin(std::process::Stdio::inherit())
306+
// .status()?;
307+
// if !st.success() {
308+
// anyhow::bail!("ostree fsck failed");
309+
// }
309310

310311
Ok(())
311312
}

0 commit comments

Comments
 (0)