From 1c0ade2e1f76b50431f941980b76e8ec5cdf3b12 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 9 Dec 2024 11:38:05 +0100 Subject: discover-image: introduce per-user image directories We nowadays support unprivileged invocation of systemd-nspawn + systemd-vmspawn, but there was no support for discovering suitable disk images (i.e. no per-user counterpart of /var/lib/machines). Add this now, and hook it up everywhere. Instead of hardcoding machined's, importd's, portabled's, sysupdated's image discovery to RUNTIME_SCOPE_SYSTEM I introduced a field that make the scope variable, even if this field is always initialized to RUNTIME_SCOPE_SYSTEM for now. I think these four services should eventually be updated to support a per-user concept too, this is preparation for that, even though it doesn't outright add support for this. This is for the largest part not user visible, except for in nspawn, vmspawn and the dissect tool. For the latter I added a pair of --user/--system switches to select the discovery scope. --- man/systemd-dissect.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'man') diff --git a/man/systemd-dissect.xml b/man/systemd-dissect.xml index b65a2c39f1..191ae3394b 100644 --- a/man/systemd-dissect.xml +++ b/man/systemd-dissect.xml @@ -503,6 +503,17 @@ + + + + + When used together with controls whether to search for + images installed system-wide or in the user's directories in $HOME. If neither + switch is specified, will search within both scopes. + + + + -- cgit v1.2.3