Bug 523624 - custom snippet will generate a corrupted kickstart file
Summary: custom snippet will generate a corrupted kickstart file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Provisioning
Version: 530
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Brandon Perkins
URL:
Whiteboard:
Depends On:
Blocks: sat531-blockers
TreeView+ depends on / blocked
 
Reported: 2009-09-16 08:20 UTC by Lars Sjöström
Modified: 2018-10-20 04:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-11-10 14:26:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1566 0 normal SHIPPED_LIVE Red Hat Network Satellite bug fix update 2009-11-10 14:26:13 UTC

Description Lars Sjöström 2009-09-16 08:20:04 UTC
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?

Comment 1 Lars Sjöström 2009-09-16 10:36:29 UTC
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 ?

Comment 3 Justin Sherrill 2009-10-08 19:15:53 UTC
should be fixed in master in 9f34ada

Comment 10 errata-xmlrpc 2009-11-10 14:26:19 UTC
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


Note You need to log in before you can comment on or make changes to this bug.