123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- (define-module (gnu image)
- #:use-module (guix records)
- #:export (partition
- partition?
- partition-device
- partition-size
- partition-offset
- partition-file-system
- partition-file-system-options
- partition-label
- partition-uuid
- partition-flags
- partition-initializer
- image
- image-name
- image-format
- image-target
- image-size
- image-operating-system
- image-partitions
- image-compression?
- image-volatile-root?
- image-substitutable?
- image-type
- image-type?
- image-type-name
- image-type-constructor
- os->image))
- (define-record-type* <partition> partition make-partition
- partition?
- (device partition-device (default #f))
- (size partition-size)
- (offset partition-offset (default 0))
- (file-system partition-file-system (default "ext4"))
- (file-system-options partition-file-system-options
- (default '()))
- (label partition-label (default #f))
- (uuid partition-uuid (default #f))
- (flags partition-flags (default '()))
- (initializer partition-initializer (default #f)))
- (define-record-type* <image>
- image make-image
- image?
- (name image-name
- (default #f))
- (format image-format)
- (target image-target
- (default #f))
- (size image-size
- (default 'guess))
- (operating-system image-operating-system
- (default #f))
- (partitions image-partitions
- (default '()))
- (compression? image-compression?
- (default #t))
- (volatile-root? image-volatile-root?
- (default #t))
- (substitutable? image-substitutable?
- (default #t)))
- (define-record-type* <image-type>
- image-type make-image-type
- image-type?
- (name image-type-name)
- (constructor image-type-constructor))
- (define* (os->image os #:key type)
- (let ((constructor (image-type-constructor type)))
- (constructor os)))
|