I’m trying to use LXC profile to write some files into a fresh container ( with cloud-init’s write_file module ) , and it’s working pretty well so far.
The only issue i have is that sometimes ( maybe when the file is too long ? ), it will mess up the formatting of the user.user-data part of the profile and try to write it as a single line using carriage return tag ( \n ).
For example here is the output of a lxc profile edit with a random file i created for this purpose
I tried to switch the text editor used by lxc profile and use nano, but it got the same problem.
Is it possible to disable those tag ? or are profile not suited for this kind of usage ?
( I know i could push them afterward via lxc file push, but i’d rather do the whole thing using profiles )
Thank you in advance,