autoyast - file not copied when using file_location
This document (000020340) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 15 SP2
Situation
The file_location element specifies the location, the file should be retrieved from, and YaST will copy the file to the specified location.
For example the testfile.txt is retrieved from a location on the network and copied to /tmp:
<file>
<file_path>/tmp/testfile.txt</file_path>
<file_location>http://my_test_server/tmp/testfile.txt</file_location>
</file>
After the autoinstallation the file was not copied to the location defined in the autoyast control file.
The following error is in the log file on the installed system:
2021-07-15 10:03:22 <3> <hostname>(2467) [bash] ShellCommand.cc(shellcommand):78 cp: cannot stat '/tmp/testfile.txt': No such file or directory
Resolution
The SLE15 SP2 autoyast2 update released September/14 (autoyast2-4.2.55-3.19.2) includes the patch as well.
Cause
The patch fixes the problem by adding Installation.destdir to the source code.
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:000020340
- Creation Date: 19-Jul-2021
- Modified Date:14-Sep-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com