Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #58 from cgwalters/more-machine-to-oci
Browse files Browse the repository at this point in the history
oci: Pass through other architectures
  • Loading branch information
cgwalters authored Jul 30, 2021
2 parents 6fcdde1 + 3744a9d commit 0b454fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/container/oci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ impl<'a> OciWriter<'a> {
#[context("Writing OCI")]
pub(crate) fn complete(&mut self) -> Result<()> {
let utsname = nix::sys::utsname::uname();
let arch = MACHINE_TO_OCI[utsname.machine()];
let machine = utsname.machine();
let arch = MACHINE_TO_OCI.get(machine).unwrap_or(&machine);

let rootfs_blob = self.root_layer.as_ref().unwrap();
let root_layer_id = format!("sha256:{}", rootfs_blob.uncompressed_sha256);
Expand Down

0 comments on commit 0b454fc

Please sign in to comment.