[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 11/15] gnu: system: Add Linux container module.
From: |
Thompson, David |
Subject: |
Re: [PATCH 11/15] gnu: system: Add Linux container module. |
Date: |
Thu, 9 Jul 2015 09:00:09 -0400 |
On Tue, Jul 7, 2015 at 9:55 AM, Ludovic Courtès <address@hidden> wrote:
> David Thompson <address@hidden> skribis:
>
>> * gnu/system/linux-container.scm: New file.
>> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
>> * gnu/system.scm: Export 'operating-system-etc-directory',
>> 'operating-system-boot-script', 'operating-system-locale-directory', and
>> 'file-union'.
>> (operating-system-boot-script): Add #:container? keyword argument.
>> (operating-system-activation-script): Add #:container? keyword argument.
>> Don't call 'activate-firmware' or 'activate-ptrace-attach' when activating
>> a
>> container.
>
> [...]
>
>> +(define* (operating-system-boot-script os #:key container?)
>> "Return the boot script for OS---i.e., the code started by the initrd once
>> we're running in the final root."
>
> Augment the docstring with something like:
>
> When CONTAINER? is true, skip all hardware-related operations as
> necessary when booting a Linux container.
>
>> +(define (system-container os)
>
> docstring
>
>> +(define* (container-script os #:key (mappings '()))
>
> docstring
>
> OK with these changes!
I made these changes and added a 'containerized-operating-system'
procedure to the module that does something similar to
'virtualized-operating-system' in (gnu system vm), as discussed in the
main thread.
Updated patch attached. WDYT?
- Dave
- Dave
0001-gnu-system-Add-Linux-container-module.patch
Description: Text Data
[PATCH 15/15] scripts: Add 'container' subcommand., David Thompson, 2015/07/06
Re: [PATCH 01/15] build: syscalls: Add additional mount flags., Ludovic Courtès, 2015/07/07