mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
guix: scripts: Remove unused code.
* guix/scripts/system.scm (bootloader-installer-script): Delete. Change-Id: Ic1e0a523c814e4f1bf44b2721f5658f00066b0ab
This commit is contained in:
parent
545815bcbd
commit
a9fb42b3fd
1 changed files with 0 additions and 22 deletions
|
@ -754,28 +754,6 @@ (define (maybe-suggest-running-guix-pull)
|
||||||
(warning (G_ "Consider running 'guix pull' before 'reconfigure'.~%"))
|
(warning (G_ "Consider running 'guix pull' before 'reconfigure'.~%"))
|
||||||
(warning (G_ "Failing to do that may downgrade your system!~%"))))
|
(warning (G_ "Failing to do that may downgrade your system!~%"))))
|
||||||
|
|
||||||
(define (bootloader-installer-script installer
|
|
||||||
bootloader device target)
|
|
||||||
"Return a file calling INSTALLER gexp with given BOOTLOADER, DEVICE
|
|
||||||
and TARGET arguments."
|
|
||||||
(scheme-file "bootloader-installer"
|
|
||||||
(with-imported-modules '((gnu build bootloader)
|
|
||||||
(guix build utils))
|
|
||||||
#~(begin
|
|
||||||
(use-modules (gnu build bootloader)
|
|
||||||
(guix build utils)
|
|
||||||
(ice-9 binary-ports)
|
|
||||||
(srfi srfi-34)
|
|
||||||
(srfi srfi-35))
|
|
||||||
|
|
||||||
(guard (c ((message-condition? c) ;XXX: i18n
|
|
||||||
(format (current-error-port) "error: ~a~%"
|
|
||||||
(condition-message c))
|
|
||||||
(exit 1)))
|
|
||||||
(#$installer #$bootloader #$device #$target)
|
|
||||||
(info (G_ "bootloader successfully installed on '~a'~%")
|
|
||||||
#$device))))))
|
|
||||||
|
|
||||||
(define (local-eval exp)
|
(define (local-eval exp)
|
||||||
"Evaluate EXP, a G-Expression, in-place."
|
"Evaluate EXP, a G-Expression, in-place."
|
||||||
(mlet* %store-monad ((lowered (lower-gexp exp))
|
(mlet* %store-monad ((lowered (lower-gexp exp))
|
||||||
|
|
Loading…
Reference in a new issue