unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: 64042@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#64042] [PATCH] gnu: image: Build partitions with only necessary inputs.
Date: Tue, 13 Jun 2023 13:53:20 +0300	[thread overview]
Message-ID: <016f8f819184b8fb3395ee551f39a856c347fa38.1686653575.git.efraim@flashner.co.il> (raw)

* 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.
---
 gnu/system/image.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index 958ba5cbb2..81346495c2 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -418,7 +418,14 @@ (define* (system-disk-image image
               (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)
 

base-commit: b188c41d930dbe8142c1f377d3c8f2580ff1277c
prerequisite-patch-id: 2ed36a7d0b049eb3bad8e16c2c167735bc8fbee1
prerequisite-patch-id: 68db7897e7d9cdcb940175892e8f5b0637a27cb1
prerequisite-patch-id: 830b043d4bee7ea66530e11972e65ad390b89ece
prerequisite-patch-id: 55858a370c68c4b64ccadd34a3e03e22bfb3cc7d
prerequisite-patch-id: bc9f36d509bee03fcbc238acb6ba722c32e5f7aa
prerequisite-patch-id: b8b557edd1da6a6347928d5b6fe9728f71e69d58
-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted





             reply	other threads:[~2023-06-13 20:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-13 10:53 Efraim Flashner [this message]
2023-06-18 21:30 ` [bug#64042] [PATCH] gnu: image: Build partitions with only necessary inputs Ludovic Courtès
2023-06-19 13:33   ` bug#64042: " Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=016f8f819184b8fb3395ee551f39a856c347fa38.1686653575.git.efraim@flashner.co.il \
    --to=efraim@flashner.co.il \
    --cc=64042@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).