guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Do not raise an exception at gcroot directory cre


From: Mathieu Othacehe
Subject: branch master updated: Do not raise an exception at gcroot directory creation.
Date: Thu, 24 Sep 2020 08:18:55 -0400

This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch master
in repository guix-cuirass.

The following commit(s) were added to refs/heads/master by this push:
     new d1386d8  Do not raise an exception at gcroot directory creation.
d1386d8 is described below

commit d1386d85ca54d77c68709a661170bce3bbe29f1d
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Thu Sep 24 14:13:57 2020 +0200

    Do not raise an exception at gcroot directory creation.
    
    On fresh Guix System installations, Cuirass will not be allowd to create its
    own profile directory. Instead this should be take care of by guix-daemon 
when
    Cuirass will initiate its first connection to it.
    
    * bin/cuirass.in (main): Do not raise an exception on gcroot directory
    creation failure.
---
 bin/cuirass.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/cuirass.in b/bin/cuirass.in
index c322a71..d6c2695 100644
--- a/bin/cuirass.in
+++ b/bin/cuirass.in
@@ -112,7 +112,9 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" 
"$@"
         (show-version)
         (exit 0))
        (else
-        (mkdir-p (%gc-root-directory))
+        ;; If we cannot create the gcroot directory, it should be done later
+        ;; on by guix-daemon itself.
+        (false-if-exception (mkdir-p (%gc-root-directory)))
         (let ((one-shot? (option-ref opts 'one-shot #f))
               (port (string->number (option-ref opts 'port "8080")))
               (host (option-ref opts 'listen "localhost"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]