mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: bootloader: Deprecate "device" field in favor of "target".
* gnu/bootloader.scm (<bootloader-configuration>): Deprecate "device" field in favor of "target" field. This is mostly a renaming but also a generalization to support UEFI targets being paths to a mounted partition instead of a device name. * gnu/system/examples/bare-bones.tmpl: * gnu/system/examples/desktop.tmpl: * gnu/system/examples/lightweight-desktop.tmpl: * gnu/system/examples/vm-image.tmpl: * gnu/system/install.scm: * gnu/tests.scm: * gnu/tests/install.scm: * gnu/tests/nfs.scm: * tests/system.scm: Adapt all invocations of bootloader-configuration. * guix/scripts/system.scm (perform-action): Rename device argument to bootloader-target. (process-action): Adapt caller. * doc/guix.texi (Proceeding with the Installation): * doc/guix.texi (Bootloader Configuration): Update documentation.
This commit is contained in:
parent
ba015ce9c0
commit
045ebb3e58
12 changed files with 57 additions and 38 deletions
|
@ -612,17 +612,16 @@ and TARGET arguments."
|
|||
(define* (perform-action action os
|
||||
#:key install-bootloader?
|
||||
dry-run? derivations-only?
|
||||
use-substitutes? device target
|
||||
use-substitutes? bootloader-target target
|
||||
image-size file-system-type full-boot?
|
||||
(mappings '())
|
||||
(gc-root #f))
|
||||
"Perform ACTION for OS. INSTALL-BOOTLOADER? specifies whether to install
|
||||
bootloader; DEVICE is the target devices for bootloader; TARGET is the target
|
||||
root directory; IMAGE-SIZE is the size of the image to be built, for the
|
||||
'vm-image' and 'disk-image' actions.
|
||||
The root filesystem is created as a FILE-SYSTEM-TYPE filesystem.
|
||||
FULL-BOOT? is used for the 'vm' action;
|
||||
it determines whether to boot directly to the kernel or to the bootloader.
|
||||
bootloader; BOOTLOADER-TAGET is the target for the bootloader; TARGET is the
|
||||
target root directory; IMAGE-SIZE is the size of the image to be built, for
|
||||
the 'vm-image' and 'disk-image' actions. The root filesystem is created as a
|
||||
FILE-SYSTEM-TYPE filesystem. FULL-BOOT? is used for the 'vm' action; it
|
||||
determines whether to boot directly to the kernel or to the bootloader.
|
||||
|
||||
When DERIVATIONS-ONLY? is true, print the derivation file name(s) without
|
||||
building anything.
|
||||
|
@ -662,7 +661,7 @@ output when building a system derivation, such as a disk image."
|
|||
(target (or target "/")))
|
||||
(bootloader-installer-derivation installer
|
||||
bootloader-package
|
||||
device target)))
|
||||
bootloader-target target)))
|
||||
|
||||
;; For 'init' and 'reconfigure', always build BOOTCFG, even if
|
||||
;; --no-bootloader is passed, because we then use it as a GC root.
|
||||
|
@ -895,8 +894,9 @@ resulting from command-line parsing."
|
|||
(target (match args
|
||||
((first second) second)
|
||||
(_ #f)))
|
||||
(device (and bootloader?
|
||||
(bootloader-configuration-device
|
||||
(bootloader-target
|
||||
(and bootloader?
|
||||
(bootloader-configuration-target
|
||||
(operating-system-bootloader os)))))
|
||||
|
||||
(with-store store
|
||||
|
@ -929,7 +929,8 @@ resulting from command-line parsing."
|
|||
(_ #f))
|
||||
opts)
|
||||
#:install-bootloader? bootloader?
|
||||
#:target target #:device device
|
||||
#:target target
|
||||
#:bootloader-target bootloader-target
|
||||
#:gc-root (assoc-ref opts 'gc-root)))))
|
||||
#:system system))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue