Bug 736269

Summary: Kickstart script ordering - incorrect instructions in kickstart/KickstartScriptEdit.do
Product: Red Hat Satellite 5 Reporter: Tim Jackson <tjackson>
Component: ServerAssignee: Jan Pazdziora <jpazdziora>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 541CC: cperry, pep
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-29 20:10:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 462714    

Description Tim Jackson 2011-09-07 08:42:30 UTC
Description of problem:
Quoting from kickstart/KickstartScriptEdit.do:

"First, commands related to RHN Satellite will automatically be performed (for example, esystem registration to RHN Satellite). Next, the non-chroot post script will be executed, and finally the post script will be executed"

This does not match reality. A user-created non-chroot post script gets executed *before* the built-in Satellite registration (via the cobbler snippet redhat_register).

There is also a typo in the above, as it says "...esystem registration" instead of "...system registration"

Version-Release number of selected component (if applicable):
Satellite 5.4.1

How reproducible:
Always

Steps to Reproduce:
1. Set up a kickstart profile
2. create a non-chroot post script containing "# TEST-NONCHROOT-POST"
3. view the resulting kickstart file
  
Actual results:
Observe that "# TEST-NONCHROOT-POST" is shown *before* the section which says:

"# begin cobbler snippet
# begin Red Hat management server registration"


Expected results (if the documentation was right):
"# TEST-NONCHROOT-POST" is shown *after* the section which says:

"# begin cobbler snippet
# begin Red Hat management server registration"

Additional info:
It's a good thing that non-chroot post runs before the Satellite built-in stuff, so IMO it's better to change the instructions to match the functionality rather than the other way around.