mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
Fixes guix/guix#2410. Until now, ‘guix shell’ and ‘guix time-machine’ would store GC roots under ~/.cache/guix. However, this directory is unreadable to guix-daemon when it’s running without root privileges. This commit changes ‘guix shell’ and ‘guix time-machine’ so they store GC roots under /var/guix/profiles/per-user/$USER, in a world-readable directory. An added benefit is that, in cluster setups, user homes no longer need to be mounted on the head node for GC to work (assuming ‘guix build -r’ and similar are not used). * guix/inferior.scm (%inferior-cache-directory): Change default value to be under ‘%profile-directory’. (%legacy-inferior-cache-directory): New variable. (cached-channel-instance): Add ‘maybe-remove-expired-cache-entries’ call. * guix/scripts/environment.scm (launch-environment/container)[nesting-mappings]: Add /inferiors and /profiles sub-directories of ‘%profile-directory’. Call ‘mkdir-p’ for these two directories. * guix/scripts/shell.scm (%profile-cache-directory): Change default value to be under ‘%profile-directory’. (%legacy-cache-directory): New variable. (guix-shell): Add call to ‘maybe-remove-expired-cache-entries’. Change-Id: Ie7d6c16a55b35c7beb18078c967d6fc902bf68d0 Signed-off-by: Ludovic Courtès <ludo@gnu.org> |
||
---|---|---|
.. | ||
container | ||
git | ||
home | ||
import | ||
system | ||
archive.scm | ||
authenticate.scm | ||
build.scm | ||
challenge.scm | ||
container.scm | ||
copy.scm | ||
deploy.scm | ||
describe.scm | ||
discover.scm | ||
download.scm | ||
edit.scm | ||
environment.scm | ||
gc.scm | ||
git.scm | ||
graph.scm | ||
hash.scm | ||
home.scm | ||
import.scm | ||
install.scm | ||
lint.scm | ||
locate.scm | ||
offload.scm | ||
pack.scm | ||
package.scm | ||
perform-download.scm | ||
processes.scm | ||
publish.scm | ||
pull.scm | ||
refresh.scm | ||
remove.scm | ||
repl.scm | ||
search.scm | ||
shell.scm | ||
show.scm | ||
size.scm | ||
style.scm | ||
substitute.scm | ||
system.scm | ||
time-machine.scm | ||
upgrade.scm | ||
weather.scm |