SUSE Support

Here When You Need Us

Autoyast Init Script does not correctly translate relurl

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

Environment

SUSE Linux Enterprise Server 11 Service Pack 1
AutoYaST

Situation

In SLES11 it is possible to place your custom user scripts in the same location as the autoyast files and refer to them with the syntax relurl:///<script_name>.

This feature currently does not work with Init-type autoyast scripts (scripts executed during the initial boot process after YaST2 has finished).  For example, given an autoyast launched from

http://10.0.0.4/install/autoyast/sles11/trunk

relurl:///init-script-foo.sh should be expanded to

http://10.0.0.4/install/autoyast/sles11/trunk/init-script-foo.sh

However, the installation fails when autoyast cannot find the specified script.  A look at the y2log shows that the host has been replaced, but not the directory:

2011-01-05 10:13:15 <1> linux(9280) [YCP] AutoinstScripts.ycp:201 changed relurl to http://10.0.0.4//init-script-foo.sh

As this location does not exist, the file cannot be downloaded:

2011-01-05 10:13:32 <3> testhost(9280) [YCP] autoinstall/io.ycp:84 Can't find URL: http://10.0.0.4//init-script-foo.sh

Resolution

This issue has been reported to engineering.

Additional Information

This issue can be worked around using a chroot-script incorporating the following snippet:

if grep "11 SP1" /mnt/etc/issue; then

sed -i.orig -e "s/AutoinstConfig::directory/dirname(AutoinstConfig::filepath)/"
/mnt/usr/share/YaST2/modules/AutoinstScripts.ycp

chroot /mnt ycpc -c /usr/share/YaST2/modules/AutoinstScripts.ycp

fi

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:7007632
  • Creation Date: 21-Jan-2011
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

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

SUSE Support Forums

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

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.

Open an Incident

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