Skip to content

Commit

Permalink
Merge pull request #5227 from cgwalters/use-bootc-ostree-ext-git
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon authored Jan 16, 2025
2 parents 2f470db + 360134a commit c424510
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 19 deletions.
107 changes: 94 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ nix = { version = "0.29.0", features = ["fs", "mount", "signal", "user"] }
openssl = "0.10.68"
once_cell = "1.20.2"
os-release = "0.1.0"
ostree-ext = "0.15"
# We pull this one from git, as the project is no longer published as an external crate.
ostree-ext = { git = "https://github.com/containers/bootc", rev = "dc7d4cf320ec6d8b2470d1d5f76da66ec60b6810" }
paste = "1.0"
phf = { version = "0.11", features = ["macros"] }
rand = "0.8.5"
Expand Down
2 changes: 1 addition & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ name = "ring"
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-git = []
allow-git = ["https://github.com/containers/bootc"]
2 changes: 2 additions & 0 deletions packaging/rpm-ostree.spec
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ export RUSTFLAGS="%{build_rustflags}"
%cargo_license_summary
%{cargo_license} > LICENSE.dependencies
%cargo_vendor_manifest
# https://pagure.io/fedora-rust/rust-packaging/issue/33
sed -i -e '/https:\/\//d' cargo-vendor.txt
%endif

%install
Expand Down
5 changes: 1 addition & 4 deletions rust/src/sysroot_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ async fn pull_container_async(
};
let digest = prep.manifest_digest.clone();
output_message(&format!("Importing: {} (digest: {})", &imgref, &digest));
let ostree_layers = prep
.ostree_layers
.iter()
.chain(std::iter::once(&prep.ostree_commit_layer));
let ostree_layers = prep.ostree_layers.iter().chain(&prep.ostree_commit_layer);
let mut total_to_fetch = 0;
let (stored, (n_to_fetch, size_to_fetch)) = layer_counts(ostree_layers);
if stored > 0 {
Expand Down

0 comments on commit c424510

Please sign in to comment.