diff options
author | Oleg Pykhalov <go.wigust@gmail.com> | 2023-12-26 03:58:37 +0300 |
---|---|---|
committer | Oleg Pykhalov <go.wigust@gmail.com> | 2024-01-08 21:22:44 +0300 |
commit | 519e1e3eb88ec532fc83ebb742d9919269b57c87 (patch) | |
tree | 414cf7051a590087a9fc3045e80a0efbdc9ff6b3 /gnu/image.scm | |
parent | 0cf75c9b2f23869201144917cea7f6ad49683d3d (diff) | |
download | guix-519e1e3eb88ec532fc83ebb742d9919269b57c87.tar.gz |
scripts: system: Build layered images.
* guix/scripts/system.scm (show-help, %docker-format-options, %options, %default-options, show-docker-format-options, show-docker-format-options/detailed, process-action): Handle '--max-layers' option. * gnu/system/image.scm (system-docker-image): Same. * gnu/image.scm (<image>)[max-layers]: New record field. Change-Id: I2726655aefd6688b976057fd5a38e9972ebfc292
Diffstat (limited to 'gnu/image.scm')
-rw-r--r-- | gnu/image.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/image.scm b/gnu/image.scm index 523653dd77..7fb06dec10 100644 --- a/gnu/image.scm +++ b/gnu/image.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020, 2022 Mathieu Othacehe <othacehe@gnu.org> +;;; Copyright © 2023 Oleg Pykhalov <go.wigust@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -42,6 +43,7 @@ image-format image-platform image-size + image-max-layers image-operating-system image-partition-table-type image-partitions @@ -170,6 +172,8 @@ that is not in SET, mentioning FIELD in the error message." (size image-size ;size in bytes as integer (default 'guess) (sanitize validate-size)) + (max-layers image-max-layers ;number of layers as integer + (default #false)) (operating-system image-operating-system) ;<operating-system> (partition-table-type image-partition-table-type ; 'mbr or 'gpt (default 'mbr) |