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

oci: Pass through other architectures #58

Merged
merged 1 commit into from
Jul 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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