installer: Force GPT disk label when UEFI is supported.
* gnu/installer/newt/partition.scm (run-label-page): Force the GPT disk label when UEFI is supported.
This commit is contained in:
parent
42ac8da474
commit
2b645e359e
|
@ -95,14 +95,17 @@ (define (device-items)
|
||||||
|
|
||||||
(define (run-label-page button-text button-callback)
|
(define (run-label-page button-text button-callback)
|
||||||
"Run a page asking the user to select a partition table label."
|
"Run a page asking the user to select a partition table label."
|
||||||
(run-listbox-selection-page
|
;; Force the GPT label if UEFI is supported.
|
||||||
#:info-text (G_ "Select a new partition table type. \
|
(if (efi-installation?)
|
||||||
|
"gpt"
|
||||||
|
(run-listbox-selection-page
|
||||||
|
#:info-text (G_ "Select a new partition table type. \
|
||||||
Be careful, all data on the disk will be lost.")
|
Be careful, all data on the disk will be lost.")
|
||||||
#:title (G_ "Partition table")
|
#:title (G_ "Partition table")
|
||||||
#:listbox-items '("msdos" "gpt")
|
#:listbox-items '("msdos" "gpt")
|
||||||
#:listbox-item->text identity
|
#:listbox-item->text identity
|
||||||
#:button-text button-text
|
#:button-text button-text
|
||||||
#:button-callback-procedure button-callback))
|
#:button-callback-procedure button-callback)))
|
||||||
|
|
||||||
(define (run-type-page partition)
|
(define (run-type-page partition)
|
||||||
"Run a page asking the user to select a partition type."
|
"Run a page asking the user to select a partition type."
|
||||||
|
|
Loading…
Reference in a new issue