lima-vm / alpine-lima

Create an alpine based ISO image for lima
Apache License 2.0
42 stars 28 forks source link

Make lima-init.sh yaml parsing more robust #126

Closed jandubois closed 7 months ago

jandubois commented 7 months ago

Parsing the mounts and ca_certs sections no longer need an empty line to signal the end of the section; they will now detect when the next line can no longer be part of the block.

jandubois commented 7 months ago

Thanks, let's merge this, but we should consider installing yq or something

Yeah, or just use cloud-init. I wrote lima-init in shell/awk when the whole ISO was just 30MB, and adding cloud-init made it grow to 60MB (mostly due to adding Python). But the std image is now 70-80MB, so maybe switching to cloud-init is reasonable (yq also adds 4MB compressed).

Anyways, for now it works...