1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-27 20:50:34 +02:00
Files
guix/guix
Ludovic Courtès 7445776b7e gc: Open a connection to the daemon only when strictly necessary.
Fixes guix/guix#1901.

Previously, ‘guix gc --list-busy’ (which is invoked by ‘guix-daemon’) would
open a connection to the daemon, which in turn attempts to create
/var/guix/profiles/per-user/$USER.  However, when ‘guix-daemon‘ is running as
an unprivileged user, creating that directory fails with EPERM.  Because of
this, garbage collection would always fail when running the unprivileged
daemon on Guix System.

* guix/scripts/gc.scm (guix-gc): Remove upfront call to ‘open-connection’.
Instead, use ‘with-store’ only for operations that require it.

Change-Id: I1fbfd97cf7ba9e3087f7287b4776ea2f6623400d
2025-09-18 12:14:34 +02:00
..
2025-01-25 01:05:22 +08:00
2025-04-14 17:31:49 +02:00
2025-08-31 12:39:24 +02:00
2025-02-22 23:55:24 +09:00
2024-04-15 22:36:42 +02:00
2025-09-08 10:03:38 +03:00
2024-04-15 22:36:42 +02:00
2025-07-01 17:46:01 +08:00
2024-04-15 22:36:42 +02:00
2025-09-18 13:44:12 +09:00