Skip to content

Commit c1fa294

Browse files
committed
Delete any existing read-only file
Signed-off-by: Anders F Björklund <[email protected]>
1 parent 345866d commit c1fa294

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cidata/cidata.go

+1
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ func GenerateCloudConfig(instDir, name string, y *limayaml.LimaYAML) error {
346346
return err
347347
}
348348

349+
os.RemoveAll(filepath.Join(instDir, filenames.CloudConfig)) // delete existing
349350
return os.WriteFile(filepath.Join(instDir, filenames.CloudConfig), config, 0o444)
350351
}
351352

0 commit comments

Comments
 (0)