[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/09: image: 'system-image' throws when given an incorrect image format
From: |
guix-commits |
Subject: |
04/09: image: 'system-image' throws when given an incorrect image format. |
Date: |
Fri, 1 Jul 2022 06:27:33 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e871c3a857005c2c55fcbf4dbd48e22fe33b6451
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Jul 1 09:42:53 2022 +0200
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.
---
gnu/system/image.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index 5972a944d7..f1739a35c1 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -842,7 +842,10 @@ image, depending on IMAGE format."
;; 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)))))))
;;
- branch master updated (b5c6062bce -> 741895676b), guix-commits, 2022/07/01
- 03/09: services: root-file-system: Cleanly unmount upon shutdown., guix-commits, 2022/07/01
- 08/09: image: Add sanitizers for 'format' and 'partition-table-type'., guix-commits, 2022/07/01
- 02/09: file-systems: Add 'cleanly-unmounted-ext2?'., guix-commits, 2022/07/01
- 06/09: image: Avoid use of the deprecated 'gpt' option of genimage., guix-commits, 2022/07/01
- 04/09: image: 'system-image' throws when given an incorrect image format.,
guix-commits <=
- 05/09: image: Add default value for partition initializer., guix-commits, 2022/07/01
- 01/09: gnu: texlive-fmtcount: Add proper 'license' value., guix-commits, 2022/07/01
- 07/09: image: Raise an error when an image lacks a bootable partition., guix-commits, 2022/07/01
- 09/09: tests: Add sanitizer test., guix-commits, 2022/07/01