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.
This commit is contained in:
Mathieu Othacehe 2020-05-26 13:05:22 +02:00
parent 20f524a44b
commit 1dd7b87f10
No known key found for this signature in database
GPG key ID: 8354763531769CA6
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ (define-record-type* <partition> partition make-partition
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))

View file

@ -253,7 +253,7 @@ (define (partition->config partition)
#$label
#$dos-type
#$image
#$(or offset 0))))
#$offset)))
(let* ((format (image-format image))
(image-type (format->image-type format))