guix system: Fix bootloader config file generation by 'guix system roll-back'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 7 Dec 2018 14:12:21 +0000 (15:12 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 7 Dec 2018 14:14:12 +0000 (15:14 +0100)
Fixes <https://bugs.gnu.org/33623>.
Reported by Diego Nicola Barbato <dnbarbato@posteo.de>.

Regression introduced in commit
46c296dcc4817f15a4b4ef7e5ef622306b4db62e.

* guix/scripts/system.scm (reinstall-bootloader): Add call to
'lower-object'.

guix/scripts/system.scm

index d92ec7d..8eb32c6 100644 (file)
@@ -497,9 +497,10 @@ STORE is an open connection to the store."
          (old-entries (map boot-parameters->menu-entry old-params)))
     (run-with-store store
       (mlet* %store-monad
-          ((bootcfg ((bootloader-configuration-file-generator bootloader)
-                     bootloader-config entries
-                     #:old-entries old-entries))
+          ((bootcfg (lower-object
+                     ((bootloader-configuration-file-generator bootloader)
+                      bootloader-config entries
+                      #:old-entries old-entries)))
            (bootcfg-file -> (bootloader-configuration-file bootloader))
            (target -> "/")
            (drvs -> (list bootcfg)))