lima
lima copied to clipboard
Generate cloud-config outside of cidata.iso too
This does not include any mounts, networks, nor boot scripts.
It is assumed that "reverse-sshfs" is being used, for mounts.
It also does not include lima-guestagent, nerdctl-full.tgz,
or any of the provisioning scripts that are in the cidata...
- #2268
- #2028
Closes #2268
Note for testing, it is possible to extract the user-data of a started instance:
isoinfo -R -i ~/.lima/default/cidata.iso -x /user-data
You could also mount the CD and copy the user-data file, but that is more work.
The new file is in ~/.lima/default/cloud-config.yaml
Seems like I managed to lock myself out of the home directory in CI, by thinko with "mode"
If the file does not exist, WriteFile creates it with permissions perm (before umask); otherwise WriteFile truncates it before writing, without changing permissions.
So need to clean up the home directory, or add some workaround to remove the old files.
level=error msg="[hostagent] open /Users/runner/.lima/default/cloud-config.yaml: permission denied" fields.level=fatal