Skip to content

Commit 87e2867

Browse files
authored
Merge pull request #1445 from Johan-Liebert1/composefs-crates
Bump composefs-rs
2 parents 4fc8741 + dea3a5f commit 87e2867

File tree

4 files changed

+56
-5
lines changed

4 files changed

+56
-5
lines changed

Cargo.lock

Lines changed: 50 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/lib/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ async fn run_from_opt(opt: Opt) -> Result<()> {
12271227
FsverityOpts::Enable { path } => {
12281228
let fd =
12291229
std::fs::File::open(&path).with_context(|| format!("Reading {path}"))?;
1230-
fsverity::enable_verity::<fsverity::Sha256HashValue>(&fd)?;
1230+
fsverity::enable_verity_raw::<fsverity::Sha256HashValue>(&fd)?;
12311231
Ok(())
12321232
}
12331233
},

crates/ostree-ext/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ ostree = { features = ["v2025_2"], version = "0.20" }
1616
anyhow = { workspace = true }
1717
bootc-utils = { package = "bootc-internal-utils", path = "../utils", version = "0.0.0" }
1818
camino = { workspace = true, features = ["serde1"] }
19-
composefs = { git = "https://github.com/containers/composefs-rs", rev = "d5455222f282200913902f29c66d5f625ca5661f", features = ["rhel9"] }
19+
composefs = { git = "https://github.com/containers/composefs-rs", rev = "28d4721f77f973f0e394d60d6a69d9b39cb38d7f", package = "composefs", features = ["rhel9"] }
20+
composefs-boot = { git = "https://github.com/containers/composefs-rs", rev = "28d4721f77f973f0e394d60d6a69d9b39cb38d7f", package = "composefs-boot" }
21+
composefs-oci = { git = "https://github.com/containers/composefs-rs", rev = "28d4721f77f973f0e394d60d6a69d9b39cb38d7f", package = "composefs-oci" }
2022
chrono = { workspace = true }
2123
clap = { workspace = true, features = ["derive","cargo"] }
2224
clap_mangen = { workspace = true, optional = true }

crates/ostree-ext/src/fsverity.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn enable_fsverity_in_objdir(d: &Dir) -> anyhow::Result<()> {
6565
let enabled =
6666
composefs::fsverity::measure_verity_opt::<Sha256HashValue>(f.as_fd())?.is_some();
6767
if !enabled {
68-
composefs_fsverity::enable_verity::<Sha256HashValue>(&f)?;
68+
composefs_fsverity::enable_verity_raw::<Sha256HashValue>(&f)?;
6969
}
7070
}
7171
Ok(())
@@ -123,7 +123,7 @@ pub async fn ensure_verity(repo: &ostree::Repo) -> Result<()> {
123123
// And finally, enable fsverity as a flag that we have successfully
124124
// enabled fsverity on all objects.
125125
let f = repodir.open(CONFIG_PATH)?;
126-
match composefs_fsverity::enable_verity::<Sha256HashValue>(f.as_fd()) {
126+
match composefs_fsverity::enable_verity_raw::<Sha256HashValue>(f.as_fd()) {
127127
Ok(()) => Ok(()),
128128
Err(composefs_fsverity::EnableVerityError::AlreadyEnabled) => Ok(()),
129129
Err(e) => Err(e.into()),

0 commit comments

Comments
 (0)