Score:0

Ubuntu autoinstall late-commands issue with special chars

gf flag

I need to run few commands after installation is complete. But installer is failing when I use this command:

curl -X POST -k -H "Content-Type: plain/text, Accept: plain/text" -d <somedata> <URL>

When I get into console of installer I find this: ""Failed loading yaml blob ...mapping values are not allowed". The problem it found is at colon (:) char in "Accept: plain/text".

I tried escaping with \ for colon (:) but that didnt help.

Any help here is much appreciated!

Score:0
gf flag

I found out the solution! It was a simple YAML validation error. I should have run YAML validation before posting this question.

Changing the command to the following fixed the issue:

curl -X POST -k -H 'Content-Type:plain/text, Accept:plain/text' -d <some text data> <some url>
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.