Skip to content
Snippets Groups Projects
Commit 3942305e authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

guix system: reconfigure: Always use "/" as GRUB's target file system.

* guix/scripts/system.scm (perform-action) <reconfigure>: Wrap
  'install-grub' call in 'false-if-exception'.  Always use "/" as the
  target.
parent 66672a45
No related branches found
No related tags found
No related merge requests found
......@@ -287,7 +287,8 @@ (define* (perform-action action os
((reconfigure)
(mlet %store-monad ((% (switch-to-system os)))
(when grub?
(unless (install-grub grub.cfg device target)
(unless (false-if-exception
(install-grub grub.cfg device "/"))
(leave (_ "failed to install GRUB on device '~a'~%")
device)))
(return #t)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment