Fix bug where the extra menu entries for a bootloader were shown twice.

The extra menu entries are already being added in each bootloaders, as
applicable.

* guix/scripts/system.scm (reinstall-bootloader)[entries]: Don't
  extraneously include bootloader-configuration-menu-entries here.

Change-Id: I8a600f2a5836ab4f7db5e27e25b0b8f432c3e1e0
This commit is contained in:
Felix Lechner 2024-09-21 12:23:14 +02:00 committed by Ryan Schanzenbacher
parent f321a5022d
commit 8db7a8f1e2
Signed by: ryan77627
GPG key ID: 81B0E222A3E2308E

View file

@ -412,8 +412,7 @@ (define (reinstall-bootloader store number)
(delv number (reverse (generation-numbers %system-profile)))) (delv number (reverse (generation-numbers %system-profile))))
(old-params (profile-boot-parameters (old-params (profile-boot-parameters
%system-profile old-generations)) %system-profile old-generations))
(entries (cons (boot-parameters->menu-entry params) (entries (list (boot-parameters->menu-entry params)))
(boot-parameters-bootloader-menu-entries params)))
(old-entries (map boot-parameters->menu-entry old-params))) (old-entries (map boot-parameters->menu-entry old-params)))
(run-with-store store (run-with-store store
(mlet* %store-monad (mlet* %store-monad