guix-commits
[Top][All Lists]
Advanced

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

03/09: bootloader: grub: Use inheritance to define grub-minimal-bootload


From: guix-commits
Subject: 03/09: bootloader: grub: Use inheritance to define grub-minimal-bootloader.
Date: Fri, 29 May 2020 03:12:30 -0400 (EDT)

mothacehe pushed a commit to branch master
in repository guix.

commit 7202895e5afa9922ba06eaba295645b08d6fd254
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Sat May 23 19:09:46 2020 +0200

    bootloader: grub: Use inheritance to define grub-minimal-bootloader.
    
    * gnu/bootloader/grub.scm (grub-minimal-bootloader): Inherit from
    grub-bootloader to avoid field redefinition.
---
 gnu/bootloader/grub.scm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm
index 23c7a82..40918ea 100644
--- a/gnu/bootloader/grub.scm
+++ b/gnu/bootloader/grub.scm
@@ -516,13 +516,10 @@ fi~%"))))
    (configuration-file "/boot/grub/grub.cfg")
    (configuration-file-generator grub-configuration-file)))
 
-(define grub-minimal-bootloader
+(define* grub-minimal-bootloader
   (bootloader
-   (name 'grub)
-   (package grub-minimal)
-   (installer install-grub)
-   (configuration-file "/boot/grub/grub.cfg")
-   (configuration-file-generator grub-configuration-file)))
+   (inherit grub-bootloader)
+   (package grub-minimal)))
 
 (define* grub-efi-bootloader
   (bootloader



reply via email to

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