guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/06: build: image: Make partition uuid optional.


From: guix-commits
Subject: 02/06: build: image: Make partition uuid optional.
Date: Tue, 30 Aug 2022 13:31:33 -0400 (EDT)

mothacehe pushed a commit to branch master
in repository guix.

commit 192b7d0c0b0958d6c87df6084a644e0c7eca2ec0
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Tue Aug 30 19:16:36 2022 +0200

    build: image: Make partition uuid optional.
    
    The uuid field of <partition> defaults to #false. This should be reflected
    when creating the partition.
    
    * gnu/build/image.scm (make-ext-image): Make it optional.
---
 gnu/build/image.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/build/image.scm b/gnu/build/image.scm
index 361ed3c920..2327cfbb45 100644
--- a/gnu/build/image.scm
+++ b/gnu/build/image.scm
@@ -86,7 +86,10 @@ turn doesn't take any constant overhead into account, force 
a 1-MiB minimum."
         (journal-options "lazy_itable_init=1,lazy_journal_init=1"))
     (apply invoke
            `("fakeroot" "mke2fs" "-t" ,fs "-d" ,root
-             "-L" ,label "-U" ,(uuid->string uuid)
+             "-L" ,label
+             ,@(if uuid
+                   `("-U" ,(uuid->string uuid))
+                   '())
              "-E" ,(format #f "root_owner=~a:~a,~a"
                            owner-uid owner-gid journal-options)
              ,@fs-options



reply via email to

[Prev in Thread] Current Thread [Next in Thread]