From df2ce34385376ea895580d2a3e9d75e64790919d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 8 Jul 2014 23:42:35 +0200 Subject: guix system: Add '--system' option. * guix/scripts/system.scm (switch-to-system): Add #:system parameter; pass it to 'run-with-store'. (%options): Add '--system'. (guix-system): Pass the 'system' option to 'run-with-store', 'package-derivation', and 'switch-to-system' calls. * doc/guix.texi (Invoking guix system): Document '--system' and '--image-size'. --- doc/guix.texi | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index 7930572f27..72fc4b94c2 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -3445,7 +3445,21 @@ using the following command: @end table @var{options} can contain any of the common build options provided by -@command{guix build} (@pxref{Invoking guix build}). +@command{guix build} (@pxref{Invoking guix build}). In addition, +@var{options} can contain one of the following: + +@table @option +@item --system=@var{system} +@itemx -s @var{system} +Attempt to build for @var{system} instead of the host's system type. +This works as per @command{guix build} (@pxref{Invoking guix build}). + +@item --image-size=@var{size} +For the @code{vm-image} and @code{disk-image} actions, create an image +of the given @var{size}. @var{size} may be a number of bytes, or it may +include a unit as a suffix, such as @code{MiB} for mebibytes and +@code{GB} for gigabytes. +@end table Note that all the actions above, except @code{build} and @code{init}, rely on KVM support in the Linux-Libre kernel. Specifically, the -- cgit v1.2.3