ops
ops copied to clipboard
someone reported getting duplicate disk files when using 'image create'
not sure where the 'disk.raw' is coming from or if it's a tmp file not being removed?
ops image create -c ~/config.json --package mysql_5.7.29 -i mysql-unikernel-test -t gcp
ls -ltr ~/.ops/images/
total 319448
-rw-r--r-- 2 user group 209715200 Aug 19 15:58 mysql-unikernel-test.img
-rw-r--r-- 2 user group 209715200 Aug 19 15:58 disk.raw
seems like it's being left behind in a few places:
grep -R "disk.raw" * | grep -v vendor
azure/azure_image.go: symlink := filepath.Join(filepath.Dir(imagePath), "disk.raw")
gcp/gcp_image.go: symlink := filepath.Join(filepath.Dir(imagePath), "disk.raw")
gcp/gcp_volume.go: link := filepath.Join(filepath.Dir(lv.Path), "disk.raw")