bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55406: GUIX Image API: wrong fs type and flag


From: Pavel Shlyak
Subject: bug#55406: GUIX Image API: wrong fs type and flag
Date: Sun, 15 May 2022 20:11:11 +0300

I found it. It blows my mind. Let me just cry out here.

(define (partition->dos-type partition)
;; Return the MBR partition type corresponding to the given PARTITION.
(let ((flags (partition-flags partition)))
(cond
((member 'esp flags) "0xEF")
(else "0x83"))))

(define (partition->gpt-type partition)
;; Return the genimage GPT partition type code corresponding to PARTITION.
(let ((flags (partition-flags partition)))
(cond
((member 'esp flags) "U")
(else "L"))))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]