|
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")))) |
[Prev in Thread] | Current Thread | [Next in Thread] |