SUSE Manager fully unattended upgrade using system provisioning from SLES11SP4 to SLES12SP1 stops on old repo refresh
This document (7018899) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Resolution
The script needs to have the following content:
# begin migration certificate fix
<script>
<filename>migration_fix_script.sh</filename>
<chrooted config:type="boolean">true</chrooted>
<source>
<![CDATA[
ln -s /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT
/usr/sbin/update-ca-certificates
]]>
</source>
</script>
Either the above code can be added directly to the autoyast script via the SUMA gui:
Systems > Autoinstallation > Profiles > click on the label for the current profile > File Contents > add the following to the <scripts> section
<chroot-scripts config:type="list">
# begin migration certiificate fix
<script>
<filename>migration_fix_script.sh</filename>
<chrooted config:type="boolean">true</chrooted>
<source>
<![CDATA[
ln -s /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT
/usr/sbin/update-ca-certificates
]]>
</source>
</script>
Or for the snippet solution mentioned above using a snippet script the following needs to be added to the autoyast script and the <scripts> section
<chroot-scripts config:type="list">
$SNIPPET('spacewalk/migration_fix_script')
</chroot-scripts>
After any one of the above has been added to the script the configuration needs to be updated clicking on the Update button.
Cause
To get a certificate into this trust store it needs to be placed/linked into "/etc/pki/trust/anchors/".
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7018899
- Creation Date: 10-May-2017
- Modified Date:11-Mar-2024
-
- SUSE Manager
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com