summaryrefslogtreecommitdiff
path: root/gnu/image.scm
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2023-12-26 03:58:37 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2024-01-08 21:22:44 +0300
commit519e1e3eb88ec532fc83ebb742d9919269b57c87 (patch)
tree414cf7051a590087a9fc3045e80a0efbdc9ff6b3 /gnu/image.scm
parent0cf75c9b2f23869201144917cea7f6ad49683d3d (diff)
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.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/image.scm b/gnu/image.scm
index 523653dd778..7fb06dec10a 100644
--- a/gnu/image.scm
+++ b/gnu/image.scm
@@ -1,5 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2020, 2022 Mathieu Othacehe <othacehe@gnu.org> 2;;; Copyright © 2020, 2022 Mathieu Othacehe <othacehe@gnu.org>
3;;; Copyright © 2023 Oleg Pykhalov <go.wigust@gmail.com>
3;;; 4;;;
4;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
5;;; 6;;;
@@ -42,6 +43,7 @@
42 image-format 43 image-format
43 image-platform 44 image-platform
44 image-size 45 image-size
46 image-max-layers
45 image-operating-system 47 image-operating-system
46 image-partition-table-type 48 image-partition-table-type
47 image-partitions 49 image-partitions
@@ -170,6 +172,8 @@ that is not in SET, mentioning FIELD in the error message."
170 (size image-size ;size in bytes as integer 172 (size image-size ;size in bytes as integer
171 (default 'guess) 173 (default 'guess)
172 (sanitize validate-size)) 174 (sanitize validate-size))
175 (max-layers image-max-layers ;number of layers as integer
176 (default #false))
173 (operating-system image-operating-system) ;<operating-system> 177 (operating-system image-operating-system) ;<operating-system>
174 (partition-table-type image-partition-table-type ; 'mbr or 'gpt 178 (partition-table-type image-partition-table-type ; 'mbr or 'gpt
175 (default 'mbr) 179 (default 'mbr)