I did a proof of concept that does the file splitting bit in pure awk, this avoids a bunch of forks.
It works on my little 'combined-userdata.txt' that was created from https://help.ubuntu.com/community/CloudInit (write-mime-multipart).
The other thing I'd like for it to do is to support cloud-config-archive formatted as json (ie, not supporting yaml, but just json).
This shouldnt be that hard since we already have the json parser in json2fstree.
attaching the split-multipart.awk here so I don't lose it.
I did a proof of concept that does the file splitting bit in pure awk, this avoids a bunch of forks.
It works on my little 'combined- userdata. txt' that was created from https:/ /help.ubuntu. com/community/ CloudInit (write- mime-multipart) .
The other thing I'd like for it to do is to support cloud-config- archive formatted as json (ie, not supporting yaml, but just json).
This shouldnt be that hard since we already have the json parser in json2fstree.
attaching the split-multipart.awk here so I don't lose it.