diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2023-05-28 11:03:17 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2023-06-14 14:52:21 +0300 |
| commit | cd55aa98011c42b8e97561f4eea024be751bcceb (patch) | |
| tree | 4ee8d7f5838205762843312d4fc4ce19c87eaa7f /gnu/system/image.scm | |
| parent | 39250fc6229d60b7ae397749caf1e4c99e49b419 (diff) | |
gnu: image: Add support for unformatted partitions.
* gnu/build/image.scm (make-unformatted-image): New procedure.
(make-partition-image): Add support for unformatted partition.
* gnu/system/image.scm (system-disk-image)[partition->gpt-type]: Add
case for using unformatted partition uuid.
Diffstat (limited to 'gnu/system/image.scm')
| -rw-r--r-- | gnu/system/image.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/system/image.scm b/gnu/system/image.scm index afef79185fd..958ba5cbb24 100644 --- a/gnu/system/image.scm +++ b/gnu/system/image.scm | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | ;;; Copyright © 2022 Pavel Shlyak <p.shlyak@pantherx.org> | 4 | ;;; Copyright © 2022 Pavel Shlyak <p.shlyak@pantherx.org> |
| 5 | ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 5 | ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> |
| 6 | ;;; Copyright © 2022 Alex Griffin <a@ajgrf.com> | 6 | ;;; Copyright © 2022 Alex Griffin <a@ajgrf.com> |
| 7 | ;;; Copyright © 2023 Efraim Flashner <efraim@flashner.co.il> | ||
| 7 | ;;; | 8 | ;;; |
| 8 | ;;; This file is part of GNU Guix. | 9 | ;;; This file is part of GNU Guix. |
| 9 | ;;; | 10 | ;;; |
| @@ -390,6 +391,9 @@ used in the image." | |||
| 390 | ((or (string=? file-system "vfat") | 391 | ((or (string=? file-system "vfat") |
| 391 | (string=? file-system "fat16") | 392 | (string=? file-system "fat16") |
| 392 | (string=? file-system "fat32")) "F") | 393 | (string=? file-system "fat32")) "F") |
| 394 | ((and (string=? file-system "unformatted") | ||
| 395 | (partition-uuid partition)) | ||
| 396 | (uuid->string (partition-uuid partition))) | ||
| 393 | (else | 397 | (else |
| 394 | (raise (condition | 398 | (raise (condition |
| 395 | (&message | 399 | (&message |
