Description of problem: When creating custom snippet in RHN satellite 5.3 and calling the snippet from the kickstart file cobbler or some component will add famous "^M" after each line in the snippet. This will cause anaconda to crash. Version-Release number of selected component (if applicable): RHN satellite 5.3 with cobbler. How reproducible: 1. Create a custom snippet from the satellite webGUI. ---My custom snippet example--- echo "hello world" for i in `cat /etc/hosts` do echo $i done read PW ------------------------------ 2. Create a new kickstart file in satellite GUI and call the custom SNIPPET in %pre-scripts i.e. 3. log on to satellite and type cobbler profile getks --name=<your new kickstart profile> > my.ks 4. open my.ks with "vi" And you will see ^M for each line in %pre Actual results: This will cause ananconda to crash. Expected results: cobbler should filter the ^M from the SNIPPETS?
Temporary workaround after creating a snippet from webGUI: # dos2unix /var/lib/cobbler/snippets/spacewalk/1/* Also tried to disable the Editor in the GUI when creating a snippet, but I get the same result. Can this have something to do with charsets in the browser ?
should be fixed in master in 9f34ada
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-1566.html