mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: image: Build partitions with only necessary inputs.
* gnu/system/image.scm (system-disk-image)[partition-image]: Adjust the inputs used by the image-builder to only use the packages necessary to build that partition.
This commit is contained in:
parent
f2be1ea06a
commit
da81784d60
1 changed files with 8 additions and 1 deletions
|
@ -418,7 +418,14 @@ (define (partition-image partition)
|
|||
(with-imported-modules*
|
||||
(let ((initializer (or #$(partition-initializer partition)
|
||||
initialize-root-partition))
|
||||
(inputs '#+(list e2fsprogs fakeroot dosfstools mtools))
|
||||
(inputs '#+(cond
|
||||
((string-prefix? "ext" type)
|
||||
(list e2fsprogs fakeroot))
|
||||
((or (string=? type "vfat")
|
||||
(string-prefix? "fat" type))
|
||||
(list dosfstools fakeroot mtools))
|
||||
(else
|
||||
'())))
|
||||
(image-root "tmp-root"))
|
||||
(sql-schema #$schema)
|
||||
|
||||
|
|
Loading…
Reference in a new issue