diff options
| author | Mathieu Othacehe <othacehe@gnu.org> | 2020-05-26 16:25:25 +0200 |
|---|---|---|
| committer | Mathieu Othacehe <othacehe@gnu.org> | 2020-05-26 17:16:42 +0200 |
| commit | bd3716f6fee127562935d86ff7f641197366769c (patch) | |
| tree | 5d3dbf901fa407d28f06f5e30557f99ee0c568da /gnu/image.scm | |
| parent | 6ac7526e488ad3dd73080d1c00efe2066b1bf0a2 (diff) | |
image: Add partition file-system options support.
* gnu/image.scm (<partition>)[file-system-options]: New field,
(partition-file-system-options): new exported procedure.
* gnu/system/image.scm (partition->gexp): Adapt accordingly.
* gnu/build/image.scm (sexp->partition): Also adapt accordingly,
(make-ext-image): and pass file-system options to mke2fs.
Diffstat (limited to 'gnu/image.scm')
| -rw-r--r-- | gnu/image.scm | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/gnu/image.scm b/gnu/image.scm index b434ed50e3f..0a92d168e96 100644 --- a/gnu/image.scm +++ b/gnu/image.scm | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | partition-size | 24 | partition-size |
| 25 | partition-offset | 25 | partition-offset |
| 26 | partition-file-system | 26 | partition-file-system |
| 27 | partition-file-system-options | ||
| 27 | partition-label | 28 | partition-label |
| 28 | partition-uuid | 29 | partition-uuid |
| 29 | partition-flags | 30 | partition-flags |
| @@ -46,14 +47,16 @@ | |||
| 46 | 47 | ||
| 47 | (define-record-type* <partition> partition make-partition | 48 | (define-record-type* <partition> partition make-partition |
| 48 | partition? | 49 | partition? |
| 49 | (device partition-device (default #f)) | 50 | (device partition-device (default #f)) |
| 50 | (size partition-size) | 51 | (size partition-size) |
| 51 | (offset partition-offset (default 0)) | 52 | (offset partition-offset (default 0)) |
| 52 | (file-system partition-file-system (default "ext4")) | 53 | (file-system partition-file-system (default "ext4")) |
| 53 | (label partition-label (default #f)) | 54 | (file-system-options partition-file-system-options |
| 54 | (uuid partition-uuid (default #f)) | 55 | (default '())) |
| 55 | (flags partition-flags (default '())) | 56 | (label partition-label (default #f)) |
| 56 | (initializer partition-initializer (default #f))) | 57 | (uuid partition-uuid (default #f)) |
| 58 | (flags partition-flags (default '())) | ||
| 59 | (initializer partition-initializer (default #f))) | ||
| 57 | 60 | ||
| 58 | 61 | ||
| 59 | ;;; | 62 | ;;; |
