Skip to content

Commit

Permalink
Drop remaining use of nix
Browse files Browse the repository at this point in the history
By using rustix for uname.
  • Loading branch information
cgwalters committed Jan 6, 2022
1 parent 0e86da1 commit b3974f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ hex = "0.4.3"
indicatif = "0.16.0"
once_cell = "1.9"
libc = "0.2.92"
nix = "0.23"
rustix = "0.31.3"
oci-spec = "0.5.0"
openat = "0.1.20"
Expand Down
4 changes: 2 additions & 2 deletions lib/src/container/ociwriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ impl<'a> OciWriter<'a> {

#[context("Writing OCI")]
pub(crate) fn complete(self) -> Result<()> {
let utsname = nix::sys::utsname::uname();
let machine = utsname.machine();
let uname = rustix::process::uname();
let machine = uname.machine().to_str().unwrap();
let arch = MACHINE_TO_OCI.get(machine).unwrap_or(&machine);
let arch = oci_image::Arch::from(*arch);

Expand Down

0 comments on commit b3974f5

Please sign in to comment.