homed: generate proper error if we cannot create mountpoint for homedir
Let's make this easier to debug. (When this failed for me due to disk full it took me a bit to figure out what was going on.)
This commit is contained in:
committed by
Yu Watanabe
parent
5c606fb33e
commit
5b759bf5fd
@@ -140,7 +140,9 @@ int home_move_mount(const char *mount_suffix, const char *target) {
|
||||
} else
|
||||
d = HOME_RUNTIME_WORK_DIR;
|
||||
|
||||
(void) mkdir_p(target, 0700);
|
||||
r = mkdir_p(target, 0700);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to create directory '%s': %m", target);
|
||||
|
||||
r = mount_nofollow_verbose(LOG_ERR, d, target, NULL, MS_BIND, NULL);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user