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
|
||||
}
|
||||
|
||||
/// Write `content` to a temp file and install it into the mounted rootfs at
|
||||
/// `<mount>/slim/<name>` with the given mode.
|
||||
/// Install `content` into the mounted rootfs at `<mount>/slim/<name>` with
|
||||
/// the given mode.
|
||||
fn install_into_rootfs(mount: &str, name: &str, mode: &str, content: &str) -> Result<()> {
|
||||
let temp = tempfile::NamedTempFile::new()?;
|
||||
fs::write(temp.path(), content)?;
|
||||
|
||||
Reference in New Issue
Block a user