GNU bug report logs -
#25850
[PATCH] services: Create /var/log upon activation
Previous Next
Reported by: Christopher Baines <mail <at> cbaines.net>
Date: Thu, 23 Feb 2017 16:05:02 UTC
Severity: normal
Tags: patch
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25850 in the body.
You can then email your comments to 25850 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#25850
; Package
guix-patches
.
(Thu, 23 Feb 2017 16:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Christopher Baines <mail <at> cbaines.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 23 Feb 2017 16:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Reply sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
You have taken responsibility.
(Fri, 10 Mar 2017 13:40:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Christopher Baines <mail <at> cbaines.net>
:
bug acknowledged by developer.
(Fri, 10 Mar 2017 13:40:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 25850-done <at> debbugs.gnu.org (full text, mbox):
Christopher Baines <mail <at> cbaines.net> 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’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 08 Apr 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 78 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.