diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2025-10-13 02:19:26 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-11-24 23:22:52 +0100 |
| commit | 35770c78a2db5cced15f651fdf31ed9aae349899 (patch) | |
| tree | 0bc7cc1ca30bebbaa1e94d0550b593e056258b12 /gnu/system | |
| parent | 5e5ac81e9562c9f77910766f3a1c857b3da36472 (diff) | |
image: Add support for swap.
* gnu/build/image.scm (make-swap-image): New variable.
(make-partition-image): Support swap.
* gnu/system/image.scm (system-disk-image): Support swap.
* doc/guix.texi: (partition Reference): Support swap.
Change-Id: I1c201e6aa5dd207d53e5732617910860ee894990
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/system')
| -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 b89d3a67781..68a88bda0f2 100644 --- a/gnu/system/image.scm +++ b/gnu/system/image.scm | |||
| @@ -403,6 +403,7 @@ used in the image." | |||
| 403 | (file-system (partition-file-system partition))) | 403 | (file-system (partition-file-system partition))) |
| 404 | (cond | 404 | (cond |
| 405 | ((member 'esp flags) "0xEF") | 405 | ((member 'esp flags) "0xEF") |
| 406 | ((string=? file-system "swap") "0x82") | ||
| 406 | ((or (string=? file-system "btrfs") | 407 | ((or (string=? file-system "btrfs") |
| 407 | (string-prefix? "ext" file-system) | 408 | (string-prefix? "ext" file-system) |
| 408 | (string=? file-system "f2fs")) "0x83") | 409 | (string=? file-system "f2fs")) "0x83") |
| @@ -430,6 +431,7 @@ used in the image." | |||
| 430 | ((or (string=? file-system "vfat") | 431 | ((or (string=? file-system "vfat") |
| 431 | (string=? file-system "fat16") | 432 | (string=? file-system "fat16") |
| 432 | (string=? file-system "fat32")) "F") | 433 | (string=? file-system "fat32")) "F") |
| 434 | ((string=? file-system "swap") "S") | ||
| 433 | ((and (string=? file-system "unformatted") | 435 | ((and (string=? file-system "unformatted") |
| 434 | (partition-uuid partition)) | 436 | (partition-uuid partition)) |
| 435 | (uuid->string (partition-uuid partition))) | 437 | (uuid->string (partition-uuid partition))) |
| @@ -464,6 +466,8 @@ used in the image." | |||
| 464 | (list e2fsprogs fakeroot)) | 466 | (list e2fsprogs fakeroot)) |
| 465 | ((string=? type "f2fs") | 467 | ((string=? type "f2fs") |
| 466 | (list f2fs-tools fakeroot)) | 468 | (list f2fs-tools fakeroot)) |
| 469 | ((string=? type "swap") | ||
| 470 | (list fakeroot util-linux)) | ||
| 467 | ((or (string=? type "vfat") | 471 | ((or (string=? type "vfat") |
| 468 | (string-prefix? "fat" type)) | 472 | (string-prefix? "fat" type)) |
| 469 | (list dosfstools fakeroot mtools)) | 473 | (list dosfstools fakeroot mtools)) |
