Installing to a wiped disk on EFI machines suggests MBR not GPT when chosing
(E)dit because MBR vs. GPT in this manual case is picked based on existing
data on the disk, not whether it has EFI.

Fix that so users get correct instructions and don't end up with legacy
partitioning in fresh installs on new machines.

Feedback? OK?

Index: install.md
===================================================================
RCS file: /cvs/src/distrib/amd64/common/install.md,v
retrieving revision 1.60
diff -u -p -r1.60 install.md
--- install.md  26 Apr 2023 22:45:32 -0000      1.60
+++ install.md  29 Apr 2023 18:37:51 -0000
@@ -86,7 +86,7 @@ md_prep_fdisk() {
                        echo "done."
                        return ;;
                [eE]*)
-                       if disk_has $_disk gpt; then
+                       if [[ $MDEFI == y ]]; then
                                # Manually configure the GPT.
                                cat <<__EOT
 

Reply via email to