summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-12-01 12:40:23 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-01 12:41:18 +0100
commitec57bd426a1130e93946b39c20823c7420902695 (patch)
treed92f5ce2fd3955af84dc7e044f0f07304b9d7775 /src/nspawn
parentc7a4890ce42b6c074ba622c4b82bfd3f738df736 (diff)
nspawn: improve log messages
When complaining about the inability to resolve a path, show the full path, not just the relative one. As suggested by @keszybz.
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn-mount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nspawn/nspawn-mount.c b/src/nspawn/nspawn-mount.c
index 3a069cf0e0..9024ea1385 100644
--- a/src/nspawn/nspawn-mount.c
+++ b/src/nspawn/nspawn-mount.c
@@ -589,7 +589,7 @@ int mount_all(const char *dest,
r = chase_symlinks(mount_table[k].where, dest, CHASE_NON_EXISTING|CHASE_PREFIX_ROOT, &where);
if (r < 0)
- return log_error_errno(r, "Failed to resolve %s: %m", mount_table[k].where);
+ return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, mount_table[k].where);
r = path_is_mount_point(where, NULL, 0);
if (r < 0 && r != -ENOENT)
@@ -688,7 +688,7 @@ static int mount_bind(const char *dest, CustomMount *m) {
r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NON_EXISTING, &where);
if (r < 0)
- return log_error_errno(r, "Failed to resolve %s: %m", m->destination);
+ return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, m->destination);
if (r > 0) { /* Path exists already? */
if (stat(where, &dest_st) < 0)
@@ -750,7 +750,7 @@ static int mount_tmpfs(
r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NON_EXISTING, &where);
if (r < 0)
- return log_error_errno(r, "Failed to resolve %s: %m", m->destination);
+ return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, m->destination);
if (r == 0) { /* Doesn't exist yet? */
r = mkdir_p_label(where, 0755);
if (r < 0)
@@ -791,7 +791,7 @@ static int mount_overlay(const char *dest, CustomMount *m) {
r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NON_EXISTING, &where);
if (r < 0)
- return log_error_errno(r, "Failed to resolve %s: %m", m->destination);
+ return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, m->destination);
if (r == 0) { /* Doesn't exist yet? */
r = mkdir_label(where, 0755);
if (r < 0)