Autoyast Init Script does not correctly translate relurl
This document (7007632) is provided subject to the disclaimer at the end of this document.
Environment
AutoYaST
Situation
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
Additional Information
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
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com