From cfef46f5fe22a63bff3c2e070925341a5b8583b9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 20 Oct 2021 22:03:30 +0200 Subject: [PATCH] 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. --- src/home/homework-directory.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/home/homework-directory.c b/src/home/homework-directory.c index 876dbd1baa..bd68b405c1 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 */