emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#25850: closed ([PATCH] services: Create /var/log u


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#25850: closed ([PATCH] services: Create /var/log upon activation)
Date: Fri, 10 Mar 2017 13:40:02 +0000

Your message dated Fri, 10 Mar 2017 14:39:39 +0100
with message-id <address@hidden>
and subject line Re: bug#25850: [PATCH] services: Create /var/log upon 
activation
has caused the debbugs.gnu.org bug report #25850,
regarding [PATCH] services: Create /var/log upon activation
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
25850: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25850
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] services: Create /var/log upon activation Date: Thu, 23 Feb 2017 08:20:57 +0000
When launching a container created with guix system container, the
attempt to create /var/log/wtmp would fail, as /var/log did not exist.

* gnu/services.scm (activation-script): Create /var/log
---
 gnu/services.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/services.scm b/gnu/services.scm
index 6ac4f1322..15a0f2f89 100644
--- a/gnu/services.scm
+++ b/gnu/services.scm
@@ -345,6 +345,7 @@ ACTIVATION-SCRIPT-TYPE."
 
                       ;; Same for 'wtmp', which is populated by mingetty et
                       ;; al.
+                      (if (not (file-exists? "/var/log")) (mkdir "/var/log"))
                       (close-port (open-file "/var/log/wtmp" "a0"))
 
                       ;; Set up /run/current-system.  Among other things this
-- 
2.11.1




--- End Message ---
--- Begin Message --- Subject: Re: bug#25850: [PATCH] services: Create /var/log upon activation Date: Fri, 10 Mar 2017 14:39:39 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
Christopher Baines <address@hidden> skribis:

> When launching a container created with guix system container, the
> attempt to create /var/log/wtmp would fail, as /var/log did not exist.
>
> * gnu/services.scm (activation-script): Create /var/log
> ---
>  gnu/services.scm | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gnu/services.scm b/gnu/services.scm
> index 6ac4f1322..15a0f2f89 100644
> --- a/gnu/services.scm
> +++ b/gnu/services.scm
> @@ -345,6 +345,7 @@ ACTIVATION-SCRIPT-TYPE."
>  
>                        ;; Same for 'wtmp', which is populated by mingetty et
>                        ;; al.
> +                      (if (not (file-exists? "/var/log")) (mkdir "/var/log"))

I changed that to ‘mkdir-p’ and applied, thanks!

Ludo’.


--- End Message ---

reply via email to

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