[Spacewalk-list] Debugging broken kickstart profile

David Rock david at graniteweb.com
Thu Feb 23 16:51:41 UTC 2017


> On Feb 23, 2017, at 04:34, Ree, Jan-Albert van <J.A.v.Ree at marin.nl> wrote:
> 
> Thanks for the hint, it turned out to be something even more stupid...
> In one of the post scripts I install a load of RPM's in one go. After one of the line breaks I had a space character which apparently messes things up.

Specifically what it messes up is the line ends early. The “\” that you typically see at the end of a line (for example)

yum install foo \
                  bar \
                  baz \
                  foobar

is escaping the newline character “\n”.  So the above is actually doing this:

yum install foo \\n
                  bar \\n
                  baz \\n
                  foobar

which results in:

yum install foo bar baz foobar

If you don’t put the \ right next to the \n, it isn’t escaping the \n anymore and the \n is read, ending the command prematurely:

yum install foo \\n
                  bar \ \n   <— extra space
                  baz \\n
                  foobar

which results in:

yum install foo bar
baz foobar


—
David Rock
david at graniteweb.com




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170223/bcfac62c/attachment.sig>


More information about the Spacewalk-list mailing list