[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26339: [PATCH 14/18] scripts: system: Rename grub? and install-grub?
From: |
Mathieu Othacehe |
Subject: |
bug#26339: [PATCH 14/18] scripts: system: Rename grub? and install-grub? to bootloader? and install-bootloader?. |
Date: |
Sun, 2 Apr 2017 15:52:38 +0200 |
* guix/scripts/system.scm (perform-action): Rename grub? to bootloader,
(%options): rename install-grub? to install-bootloader?,
(%default-options): ditto,
(process-action): reindent and rename grub? to bootloader?.
---
guix/scripts/system.scm | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index d3118266e..791cf1166 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -580,7 +580,7 @@ PATTERN, a string. When PATTERN is #f, display all the
system generations."
(warning (_ "Failing to do that may downgrade your system!~%"))))
(define* (perform-action action os
- #:key grub? dry-run? derivations-only?
+ #:key bootloader? dry-run? derivations-only?
use-substitutes? device target
image-size full-boot?
(mappings '()))
@@ -767,7 +767,7 @@ Some ACTIONS support additional ARGS.\n"))
result)))
(option '("no-bootloader") #f #f
(lambda (opt name arg result)
- (alist-cons 'install-grub? #f result)))
+ (alist-cons 'install-bootloader? #f result)))
(option '("full-boot") #f #f
(lambda (opt name arg result)
(alist-cons 'full-boot? #t result)))
@@ -801,7 +801,7 @@ Some ACTIONS support additional ARGS.\n"))
(max-silent-time . 3600)
(verbosity . 0)
(image-size . ,(* 900 (expt 2 20)))
- (install-grub? . #t)))
+ (install-bootloader? . #t)))
;;;
@@ -813,23 +813,23 @@ Some ACTIONS support additional ARGS.\n"))
ACTION must be one of the sub-commands that takes an operating system
declaration as an argument (a file name.) OPTS is the raw alist of options
resulting from command-line parsing."
- (let* ((file (match args
- (() #f)
- ((x . _) x)))
- (system (assoc-ref opts 'system))
- (os (if file
- (load* file %user-module
- #:on-error (assoc-ref opts 'on-error))
- (leave (_ "no configuration file specified~%"))))
-
- (dry? (assoc-ref opts 'dry-run?))
- (grub? (assoc-ref opts 'install-grub?))
- (target (match args
- ((first second) second)
- (_ #f)))
- (device (and grub?
- (bootloader-configuration-device
- (operating-system-bootloader os)))))
+ (let* ((file (match args
+ (() #f)
+ ((x . _) x)))
+ (system (assoc-ref opts 'system))
+ (os (if file
+ (load* file %user-module
+ #:on-error (assoc-ref opts 'on-error))
+ (leave (_ "no configuration file specified~%"))))
+
+ (dry? (assoc-ref opts 'dry-run?))
+ (bootloader? (assoc-ref opts 'install-bootloader?))
+ (target (match args
+ ((first second) second)
+ (_ #f)))
+ (device (and bootloader?
+ (bootloader-configuration-device
+ (operating-system-bootloader os)))))
(with-store store
(set-build-options-from-command-line store opts)
@@ -855,7 +855,7 @@ resulting from command-line parsing."
m)
(_ #f))
opts)
- #:grub? grub?
+ #:bootloader? bootloader?
#:target target #:device device))))
#:system system))))
--
2.12.2
- bug#26339: [PATCH 04/18] bootloader: Add install procedures and use them., (continued)
bug#26339: [PATCH 09/18] scripts: system: Move save-load-path-excursion and save-environment-excursion macros to the top., Mathieu Othacehe, 2017/04/02
- bug#26339: [PATCH 09/18] scripts: system: Move save-load-path-excursion and save-environment-excursion macros to the top., Danny Milosavljevic, 2017/04/15
- bug#26339: [PATCH 09/18] scripts: system: Move save-load-path-excursion and save-environment-excursion macros to the top., Mathieu Othacehe, 2017/04/15
- bug#26339: [PATCH 09/18] scripts: system: Move save-load-path-excursion and save-environment-excursion macros to the top., Danny Milosavljevic, 2017/04/15
- bug#26339: [PATCH 09/18] scripts: system: Move save-load-path-excursion and save-environment-excursion macros to the top., Mathieu Othacehe, 2017/04/15
- bug#26339: [PATCH 09/18] scripts: system: Move save-load-path-excursion and save-environment-excursion macros to the top., Danny Milosavljevic, 2017/04/15
bug#26339: [PATCH 13/18] scripts: system: Remove unused variables., Mathieu Othacehe, 2017/04/02
bug#26339: [PATCH 14/18] scripts: system: Rename grub? and install-grub? to bootloader? and install-bootloader?.,
Mathieu Othacehe <=
bug#26339: [PATCH 15/18] scripts: system: Adapt "reconfigure" to new bootloader API., Mathieu Othacehe, 2017/04/02
bug#26339: [PATCH 16/18] scripts: system: Adapt "init" to new bootloader API., Mathieu Othacehe, 2017/04/02
bug#26339: [PATCH 18/18] scripts: system: Display bootloader device and type in "list-generations"., Mathieu Othacehe, 2017/04/02
bug#26339: [PATCH 11/18] bootloader: Add device and type to bootloader-configuration record., Mathieu Othacehe, 2017/04/02
bug#26339: [PATCH 17/18] scripts: system: Adapt "switch-generation" to new bootloader API., Mathieu Othacehe, 2017/04/02