lima icon indicating copy to clipboard operation
lima copied to clipboard

Generate cloud-config outside of cidata.iso too

Open afbjorklund opened this issue 1 year ago • 1 comments

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

afbjorklund avatar Apr 05 '24 19:04 afbjorklund

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

afbjorklund avatar Jul 01 '24 11:07 afbjorklund

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

afbjorklund avatar Aug 31 '24 16:08 afbjorklund