pub fn patch_toml(original: &str, install: &[String]) -> Result<String>Expand description
Patch the install array in a TOML definition to match the given
package list. Returns the patched TOML string.
Uses toml_edit to preserve comments and formatting while safely
updating or inserting the [image.packages].install key, even when
the array is formatted across multiple lines.