Red Hat Bugzilla – Bug 498356
[PATCH] rhn-bootstrap: set specific profilename during registration process if it's given
Last modified: 2010-10-23 05:18:03 EDT
Created attachment 341860 [details]
A patch to add an option to specify profilename of client systems to bootstrap scripts
Description of problem:
The profile name of client systems registered to the satellite server sometimes becomes "unknown" depends on environments.
This patch can solve this problem and makes it configurable by administrators who can generate and edit bootstrap scripts.
Version-Release number of selected component (if applicable): 5.2.0
I posted almost the same patch on the spacewalk-devel list:
need a testplan...
although.. I suspect this is *not* recreatable
* Generate the bootstrap.sh from Satellite's GUI.
* Verify that the PROFILENAME variable is in the bootstrap.sh script:
# ex. PROFILENAME="foo.example.com" # For specific clinet system
# PROFILENAME=`hostname -s` # Short hostname
# PROFILENAME=`hostname -f` # FQDN
PROFILENAME="" # Empty by default to let it be set automatically.
* Set the variable to something random and unique:
* execute the bootstrap.sh on a client
* Verify that the profilename matches the variable specified.
This was missing a cherry-pick into vader. resolving and should be in next ISO
verified... works w/ custom prof name
ran the script
[root@rlx-3-06 ~]# bash bootstrap.sh
RHN Satellite Server Client bootstrap script v4.0
and it worked properly and set the new profile name
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.