SUSE Support

Here When You Need Us

Autoyast Installation fails with <mail> section in the xml

This document (7015497) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11 SP3

Situation

If the autoyast.xml to install SLES 11 SP3 from installation media has a <mail> configuration set, the installation will crash due to a wrong return code.
The problem is known and fixed with Postfix version postfix-2.9.4-0.15.1.x86_64.rpm but that rpm is not part of the SP3 installation media.

Resolution

To be able to work around this a custom channel (SUSE Manager / repo (SMT) has to be created:
 
(1) download "postfix-2.9.4-0.15.1.x86_64.rpm":
(2) copy the file to /srv/www/htdocs/<custom repo>
(3) on a SUSE Manager system issue the command inside the new path:
createrepo .
or:

createrepo /srv/www/htdocs/<custom repo>
 
URL for Autoyast later on will be: <media_url>http://<SUSE Manager>/<custom repo name></media_url>
 
on a SMT system you will have to install the "createrepo" package via "zypper in createrepo" or on the long run use the "create_update_source.sh" script:
 
mkdir -p /srv/www/htdocs/<custom repo name>
cd /srv/www/htdocs/<custom repo name>
./create_update_source.sh .
mkdir -p ./updates/suse/x86_64
cp -a <new-postfix-rpm> ./updates/suse/x86_64
cd updates/suse
create_package_descr -x setup/descr/EXTRA_PROV
cd setup/descr
ls > directory.yast
cd ../../..
create_sha1sums -x -n .
 
URL for autoyast later on will be different if you were using the "create_update_source.sh" script : <media_url>http://<SMT URL>/<custom repo name>/updates</media_url>
 
(4) once that is done you will have to add the new custom repo to the autoyast XML "<add-on>" section:
 
<add-on>
  <add_on_products config:type="list">
    <listentry>
      <media_url>http://<SUSE Manager or SMT URL>/<custom repo name></media_url>
      <product>SuSE-Linux-Updates</product>
      <product_dir>/</product_dir>
      <name><custom repo name></name>
    </listentry>
  </add_on_products>
</add-on>
 
Note: Please make sure to replace <SUSE Manager or SMT URL> with the URL of your SUMA/SMT and of course <custom repo name> with the name of the custom repo. 

Cause

The postfix package in installation media does not include the latest patches needed for autoyast to work

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:7015497
  • Creation Date: 08-Aug-2014
  • Modified Date:23-Feb-2021
    • SUSE Linux Enterprise Server
    • SUSE Manager

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.