Archived
1
0
Fork 0

system: image: Do not produce an HFS tree when building an ISO.

Use "mbr_only" mode to make sure that no HFS+ tree are generated.

* gnu/system/image.scm (system-image): Set MKRESCUE_SED_MODE to "mbr_only".
This commit is contained in:
Mathieu Othacehe 2020-06-11 15:25:02 +02:00
parent cd0f1fbd1a
commit fd1e885236
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -538,14 +538,23 @@ image, depending on IMAGE format."
#:inputs `(("system" ,os) #:inputs `(("system" ,os)
("bootcfg" ,bootcfg)))) ("bootcfg" ,bootcfg))))
((iso9660) ((iso9660)
(system-iso9660-image image* (system-iso9660-image
#:bootcfg bootcfg image*
#:bootloader bootloader #:bootcfg bootcfg
#:register-closures? register-closures? #:bootloader bootloader
#:inputs `(("system" ,os) #:register-closures? register-closures?
("bootcfg" ,bootcfg)) #:inputs `(("system" ,os)
#:grub-mkrescue-environment ("bootcfg" ,bootcfg))
'(("MKRESCUE_SED_MODE" . "mbr_hfs"))))))) ;; Make sure to use a mode that does no imply
;; HFS+ tree creation that may fail with:
;;
;; "libisofs: FAILURE : Too much files to mangle,
;; cannot guarantee unique file names"
;;
;; 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")))))))
(define (find-image file-system-type) (define (find-image file-system-type)
"Find and return an image that could match the given FILE-SYSTEM-TYPE. This "Find and return an image that could match the given FILE-SYSTEM-TYPE. This