Browse Source

image: Set offset default to zero.

* gnu/image.scm (<partition>)[offset]: Set to zero by default.
* gnu/system/image.scm (system-disk-image): Adapt accordingly.
gn-latest-20200725
Mathieu Othacehe 1 year ago
parent
commit
1dd7b87f10
No known key found for this signature in database GPG Key ID: 8354763531769CA6
  1. 2
      gnu/image.scm
  2. 2
      gnu/system/image.scm

2
gnu/image.scm

@ -48,7 +48,7 @@
partition?
(device partition-device (default #f))
(size partition-size)
(offset partition-offset (default #f))
(offset partition-offset (default 0))
(file-system partition-file-system (default "ext4"))
(label partition-label (default #f))
(uuid partition-uuid (default #f))

2
gnu/system/image.scm

@ -253,7 +253,7 @@ used in the image."
#$label
#$dos-type
#$image
#$(or offset 0))))
#$offset)))
(let* ((format (image-format image))
(image-type (format->image-type format))

Loading…
Cancel
Save