Skip to content

Commit

Permalink
.crc-exist file is managed by libmachine code itself.
Browse files Browse the repository at this point in the history
For other drivers, the file is created by libmachine with
api.SetExists(). Libvirt driver is the only one to do that.
  • Loading branch information
guillaumerose authored and cfergeau committed May 10, 2021
1 parent 7671a3a commit c4e5728
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/libvirt/libvirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,6 @@ func (d *Driver) Create() error {
}
d.vm = vm
d.vmLoaded = true
log.Debugf("Adding the file: %s", filepath.Join(d.ResolveStorePath("."), fmt.Sprintf(".%s-exist", d.MachineName)))
_, _ = os.OpenFile(filepath.Join(d.ResolveStorePath("."), fmt.Sprintf(".%s-exist", d.MachineName)), os.O_RDONLY|os.O_CREATE, 0666)

_, err = d.resizeDiskImageIfNeeded(d.DiskCapacity)
if err != nil {
Expand Down

0 comments on commit c4e5728

Please sign in to comment.