diff --git a/Cargo.lock b/Cargo.lock index eda51323a..808548b20 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -167,7 +167,6 @@ dependencies = [ "maplit", "mbrman", "nix", - "openat-ext", "openssl", "pipe", "rand", @@ -785,27 +784,6 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" -[[package]] -name = "openat" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95aa7c05907b3ebde2610d602f4ddd992145cc6a84493647c30396f30ba83abe" -dependencies = [ - "libc", -] - -[[package]] -name = "openat-ext" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08ebe55c8d6ada962ca7ddaef14f020dae1af91748bea3d36e8c941036b5d85b" -dependencies = [ - "libc", - "nix", - "openat", - "rand", -] - [[package]] name = "openssl" version = "0.10.38" diff --git a/Cargo.toml b/Cargo.toml index 3c536bcd4..f175d1290 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,6 @@ ignition-config = "0.2" lazy_static = "^1.4" libc = "^0.2" nix = ">= 0.22, < 0.24" -openat-ext = ">= 0.1.4, < 0.3" openssl = "^0.10" pipe = ">= 0.3, < 0.5" regex = ">= 1.4, < 1.6" diff --git a/src/live/util.rs b/src/live/util.rs index 91526c908..45a759188 100644 --- a/src/live/util.rs +++ b/src/live/util.rs @@ -14,7 +14,6 @@ use anyhow::{bail, Context, Result}; use nix::unistd::isatty; -use openat_ext::FileExt; use std::fs::{write, File, OpenOptions}; use std::io::{self, copy, BufWriter, Seek, SeekFrom, Write}; use std::os::unix::io::AsRawFd; @@ -62,9 +61,7 @@ pub(super) fn write_live_iso( .tempfile_in(output_dir) .context("creating temporary file")?; input.seek(SeekFrom::Start(0)).context("seeking input")?; - input - .copy_to(output.as_file_mut()) - .context("copying input to temporary file")?; + copy(input, output.as_file_mut()).context("copying input to temporary file")?; iso.write(output.as_file_mut())?; output .persist_noclobber(&output_path)