mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
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'.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user