unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Thompson, David" <dthompson2@worcester.edu>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] system: container: Update to new service API.
Date: Thu, 29 Oct 2015 20:58:27 -0400	[thread overview]
Message-ID: <CAJ=Rwfai1NT8Ex3mCvL=HTfGnKNsdO-=yKuO--HJqA1v14cg2g@mail.gmail.com> (raw)
In-Reply-To: <87y4el49np.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

On Thu, Oct 29, 2015 at 6:00 PM, Ludovic Courtès <ludo@gnu.org> wrote:
> "Thompson, David" <dthompson2@worcester.edu> skribis:
>
>> On Tue, Oct 27, 2015 at 9:22 AM, Ludovic Courtès <ludo@gnu.org> wrote:
>>> Sorry, I meant to preserve #:container? behavior but I forgot this bit.
>>>
>>> I believe the attached patch provides an Even Greater Way to address the
>>> problem, namely by making the modprobe/firmware thing an optional
>>> service.
>>>
>>> Could you try and report back?  I tried it in a VM and there’s no
>>> regression.
>>
>> It works great, thanks!
>
> Applied!

Thanks!  Here's the new patch.

- Dave

[-- Attachment #2: 0001-system-container-Adjust-to-changes-in-gexps.patch --]
[-- Type: text/x-diff, Size: 1862 bytes --]

From 750131550354a25541a3adcdd983f4053bb86cc9 Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Thu, 29 Oct 2015 00:15:36 -0400
Subject: [PATCH] system: container: Adjust to changes in gexps.

* gnu/system/linux-container.scm (system-container): 'etc' is no longer
  a monadic value, and the result of 'file-union' must be lowered.
---
 gnu/system/linux-container.scm | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gnu/system/linux-container.scm b/gnu/system/linux-container.scm
index fdf7460..abe816f 100644
--- a/gnu/system/linux-container.scm
+++ b/gnu/system/linux-container.scm
@@ -25,6 +25,7 @@
   #:use-module (guix derivations)
   #:use-module (guix monads)
   #:use-module (gnu build linux-container)
+  #:use-module (gnu services)
   #:use-module (gnu system)
   #:use-module (gnu system file-systems)
   #:export (mapping->file-system
@@ -50,14 +51,15 @@
   "Return a derivation that builds OS as a Linux container."
   (mlet* %store-monad
       ((profile (operating-system-profile os))
-       (etc     (operating-system-etc-directory os))
+       (etc  -> (operating-system-etc-directory os))
        (boot    (operating-system-boot-script os #:container? #t))
        (locale  (operating-system-locale-directory os)))
-    (file-union "system-container"
-                `(("boot" ,#~#$boot)
-                  ("profile" ,#~#$profile)
-                  ("locale" ,#~#$locale)
-                  ("etc" ,#~#$etc)))))
+    (lower-object
+     (file-union "system-container"
+                 `(("boot" ,#~#$boot)
+                   ("profile" ,#~#$profile)
+                   ("locale" ,#~#$locale)
+                   ("etc" ,#~#$etc))))))
 
 (define (containerized-operating-system os mappings)
   "Return an operating system based on OS for use in a Linux container
-- 
2.5.0


  reply	other threads:[~2015-10-30  0:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27  0:19 [PATCH] system: container: Update to new service API David Thompson
2015-10-27  0:21 ` Thompson, David
2015-10-27 13:22   ` Ludovic Courtès
2015-10-29  4:19     ` Thompson, David
2015-10-29 22:00       ` Ludovic Courtès
2015-10-30  0:58         ` Thompson, David [this message]
2015-10-30 16:41           ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ=Rwfai1NT8Ex3mCvL=HTfGnKNsdO-=yKuO--HJqA1v14cg2g@mail.gmail.com' \
    --to=dthompson2@worcester.edu \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).