tmpfiles: log when we skip an entry due to autofs

This commit is contained in:
Lennart Poettering 2018-10-26 21:07:38 +02:00
parent 811a158778
commit 21af33863f
1 changed files with 5 additions and 1 deletions

View File

@ -2258,8 +2258,12 @@ static int process_item(Item *i, OperationMask operation) {
i->done |= operation;
if (chase_symlinks(i->path, NULL, CHASE_NO_AUTOFS, NULL) == -EREMOTE)
r = chase_symlinks(i->path, NULL, CHASE_NO_AUTOFS, NULL);
if (r == -EREMOTE) {
log_debug_errno(r, "Item '%s' is behind autofs, skipping.", i->path);
return 0;
} else if (r < 0)
log_debug_errno(r, "Failed to determine whether '%s' is behind autofs, ignoring: %m", i->path);
r = FLAGS_SET(operation, OPERATION_CREATE) ? create_item(i) : 0;
/* Failure can only be tolerated for create */