David Thompson <dthomps...@worcester.edu> 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!

Ludo’.

Reply via email to