guix system: Compute 'bootcfg' only for 'init' and 'reconfigure'.
Previously, 'guix system vm' would start by computing the bootcfg derivation, which itself depended on an incorrect OS derivation (for the original OS instead of the one passed through 'virtualized-operating-system'.) That added overhead and would force the user's config file to define a root file system, for example, even though it makes no sense in the case of a VM. * guix/scripts/system.scm (perform-action)[bootcfg]: Limit to the 'init' and 'reconfigure' actions.
This commit is contained in:
parent
e01bd1a674
commit
af41e504cf
1 changed files with 1 additions and 1 deletions
|
@ -855,7 +855,7 @@ (define bootloader
|
|||
(bootloader-configuration-bootloader (operating-system-bootloader os)))
|
||||
|
||||
(define bootcfg
|
||||
(and (not (eq? 'container action))
|
||||
(and (memq action '(init reconfigure))
|
||||
(operating-system-bootcfg os menu-entries)))
|
||||
|
||||
(define bootloader-script
|
||||
|
|
Loading…
Reference in a new issue