Rewrite install_into_rootfs doc comment to omit temp-file detail
CI / build (pull_request) Successful in 13s
CI / build (pull_request) Successful in 13s
This commit is contained in:
+2
-2
@@ -87,8 +87,8 @@ pub fn build_exec_script(command: &str, env: &[String], working_dir: Option<&str
|
|||||||
lines
|
lines
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Write `content` to a temp file and install it into the mounted rootfs at
|
/// Install `content` into the mounted rootfs at `<mount>/slim/<name>` with
|
||||||
/// `<mount>/slim/<name>` with the given mode.
|
/// the given mode.
|
||||||
fn install_into_rootfs(mount: &str, name: &str, mode: &str, content: &str) -> Result<()> {
|
fn install_into_rootfs(mount: &str, name: &str, mode: &str, content: &str) -> Result<()> {
|
||||||
let temp = tempfile::NamedTempFile::new()?;
|
let temp = tempfile::NamedTempFile::new()?;
|
||||||
fs::write(temp.path(), content)?;
|
fs::write(temp.path(), content)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user