diff options
author | Michal Sekletar <msekleta@redhat.com> | 2022-03-15 19:02:05 +0100 |
---|---|---|
committer | Michal Sekletar <msekleta@redhat.com> | 2022-04-08 15:18:24 +0200 |
commit | 1d0727e76fd5e9a07cc9991ec9a10ea1d78a99c7 (patch) | |
tree | 210e5a04fccf5b7ececb91916d64502578d31cba /src/core/mount.c | |
parent | 7f95def6710c409cf04bd6a3cbf56d34f61173a6 (diff) | |
download | systemd-1d0727e76fd5e9a07cc9991ec9a10ea1d78a99c7.tar.gz |
core: shorten long unit names that are based on paths and append path hash at the end
Fixes #18077
Diffstat (limited to 'src/core/mount.c')
-rw-r--r-- | src/core/mount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 329abfdaa8..b4c058dff4 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -622,6 +622,9 @@ static int mount_add_extras(Mount *m) { if (!m->where) { r = unit_name_to_path(u->id, &m->where); + if (r == -ENAMETOOLONG) + log_unit_error_errno(u, r, "Failed to derive mount point path from unit name, because unit name is hashed. " + "Set \"Where=\" in the unit file explicitly."); if (r < 0) return r; } |