mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
image: 'system-image' throws when given an incorrect image format.
Previously 'system-image' would return *unspecified* in that case, leading to a wrong-type-arg error crash down the road. * gnu/system/image.scm (system-image): Add 'else' clause.
This commit is contained in:
parent
0483c71cc5
commit
e871c3a857
1 changed files with 4 additions and 1 deletions
|
@ -842,7 +842,10 @@ (define target (cond
|
|||
;; This happens if some limits are exceeded, see:
|
||||
;; https://lists.gnu.org/archive/html/grub-devel/2020-06/msg00048.html
|
||||
#:grub-mkrescue-environment
|
||||
'(("MKRESCUE_SED_MODE" . "mbr_only"))))))))
|
||||
'(("MKRESCUE_SED_MODE" . "mbr_only"))))
|
||||
(else
|
||||
(raise (formatted-message
|
||||
(G_ "~a: unsupported image format") image-format)))))))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue