-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ManagedFile uses /var/cache/labgrid/..
sync path even when resource is remote
#1398
Comments
var/cache/labgrid/..
sync path even when resource is remote/var/cache/labgrid/..
sync path even when resource is remote
See contrib/systemd/tmpfiles.d/labgrid.conf for an example tmpfiles.d entry and the Attention box in the Gettings Started Exporter section. |
Thanks for the answer. I am not talking about configuring the exporter though. It's possible to specify I guess I am using |
The terminology is only an inconsistency as far as i can see. For dut file management the |
Ah okay, so I'll just bind to I guess it doesn't come up often, but this is then still an issue whenever a user defines a different The docs also seem to be outdated. It does read like it originally was intended to be used in a more general way |
On second thought I do think it would better to keep the drivers using Could it be that this was the original architecture, but shifted either intentionally or unintentionally at some point? |
Currently the implementation of
sync_to_resource()
in managed file always uses the user cache directory (var/cache/labgrid/..
), even when user of the class provides a remote resource, meaning the connection is actually not to the exporter, but to the target machine.This works when the target user is root and able to create the
/var/cache/labgrid/..
directory, but it might fail when they are not.To fix this, the directory could maybe be
/var/tmp
or/tmp
like it is done in other parts of the code ?The text was updated successfully, but these errors were encountered: