Skip to content

Commit a0cdb06

Browse files
authored
Add '--remove-destination' option to cp command (#1764)
Signed-off-by: Ben Pilgrim <[email protected]>
1 parent 809b18b commit a0cdb06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/lib/src/bootc_composefs/state.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ pub(crate) fn copy_etc_to_state(
9595
let cp_ret = Command::new("cp")
9696
.args([
9797
"-a",
98+
"--remove-destination",
9899
&format!("{}/etc/.", tempdir.dir.path().as_str()?),
99100
&format!("{state_path}/etc/."),
100101
])

0 commit comments

Comments
 (0)