From: Lennart Poettering Date: Wed, 20 Oct 2021 20:03:30 +0000 (+0200) Subject: homework: when activating a directory, include info about it in resulting record X-Git-Tag: v250-rc1~404^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfef46f5fe22a63bff3c2e070925341a5b8583b9;p=thirdparty%2Fsystemd.git homework: when activating a directory, include info about it in resulting record For the other backends we synthesize a "binding" section in the json record of the user that stores meta info how a user record is "bound" to the local host. It declares storage info and such. Let's do the same for the directory/subvolume backends. --- diff --git a/src/home/homework-directory.c b/src/home/homework-directory.c index 876dbd1baad..bd68b405c10 100644 --- a/src/home/homework-directory.c +++ b/src/home/homework-directory.c @@ -53,6 +53,10 @@ int home_activate_directory( if (r < 0) return r; + r = home_extend_embedded_identity(new_home, h, setup); + if (r < 0) + return r; + setup->root_fd = safe_close(setup->root_fd); /* Create mount point to mount over if necessary */