SUSE Support

Here When You Need Us

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 SP3
SUSE Linux Enterprise Server 15 SP2

Situation

During an autoYaST installation it is possible to copy files to a location on the then installed system.
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 SP3 autoyast2 maintenance update released July/27 (autoyast2-4.3.86-3.17.1) includes the patch to resolve the problem.
The SLE15 SP2 autoyast2 update released September/14 (autoyast2-4.2.55-3.19.2) includes the patch as well.

Cause

When using the file_location element the file is copied to the inst-sys instead of the final system.
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

< 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.