As in regular template YAMLs (/usr/local/share/lima/templates/*.yaml), containerd.yaml, networks.TEMPLATE.yaml, etc. could be read from the local directory rather than from //go:embed?
https://github.com/search?q=repo%3Alima-vm%2Flima+%22%2F%2Fgo%3Aembed%22&type=code
|
//go:embed containerd.yaml |
|
var defaultContainerdYAML []byte |
|
//go:embed networks.TEMPLATE.yaml |
|
var defaultConfigTemplate string |
|
//go:embed cidata.TEMPLATE.d |
|
var templateFS embed.FS |
|
|
|
const templateFSRoot = "cidata.TEMPLATE.d" |
|
|
|
//go:embed wincidata.TEMPLATE.d |
|
var windowsTemplateFS embed.FS |
|
//go:embed io.lima-vm.autostart.INSTANCE.plist |
|
var Template string |
|
|
|
//go:embed io.lima-vm.daemon.INSTANCE.plist |
|
var DaemonTemplate string |
|
//go:embed lima-vm@INSTANCE.service |
|
var Template string |
Driver-specific embeds (may stay embedded?)
|
//go:embed lima-init.TEMPLATE |
|
var limaBoot string |
|
//go:embed boot.Linux/*.sh |
|
var bootLinuxFS embed.FS |
|
//go:embed boot.Linux/*.sh |
|
var bootLinuxFS embed.FS |
|
//go:embed boot.Linux/*.sh |
|
var bootLinuxFS embed.FS |
Guest agent embeds (should stay embedded probably, as the guest agent binary has been expected to be a single file)
|
//go:embed lima-guestagent.TEMPLATE.service |
|
var systemdUnitTemplate string |
As in regular template YAMLs (
/usr/local/share/lima/templates/*.yaml),containerd.yaml,networks.TEMPLATE.yaml, etc. could be read from the local directory rather than from//go:embed?https://github.com/search?q=repo%3Alima-vm%2Flima+%22%2F%2Fgo%3Aembed%22&type=code
lima/pkg/limayaml/defaults.go
Lines 61 to 62 in 434aabe
lima/pkg/networks/config.go
Lines 23 to 24 in 434aabe
lima/pkg/cidata/template.go
Lines 25 to 31 in 434aabe
lima/pkg/autostart/launchd/launchd.go
Lines 19 to 23 in 434aabe
lima/pkg/autostart/systemd/systemd.go
Lines 19 to 20 in 434aabe
Driver-specific embeds (may stay embedded?)
lima/pkg/driver/wsl2/vm_windows.go
Lines 72 to 73 in 434aabe
lima/pkg/driver/wsl2/wsl_driver_windows.go
Lines 176 to 177 in 434aabe
lima/pkg/driver/vz/vz_driver_darwin.go
Lines 231 to 232 in 434aabe
lima/pkg/driver/krunkit/krunkit_driver_darwin_arm64.go
Lines 288 to 289 in 434aabe
Guest agent embeds (should stay embedded probably, as the guest agent binary has been expected to be a single file)
lima/cmd/lima-guestagent/install_systemd_linux.go
Lines 112 to 113 in 434aabe