On Tue, Sep 15, 2020 at 1:48 PM Andrew Daugherity
<[email protected]> wrote:
> With a headless machine, the installer always uses MBR mode.  I selected GPT
> and ignored the warning "An EFI/GPT disk may not boot. Proceed?"; it boots
> fine, of course (and MBR mode would not boot, unless I manually created and
> populated an EFI System Partition.)
>
> I tracked this down to install.md checking for efifb0 at mainbus0.
> With a headless VM, however, the dmesg line is:
> efifb at mainbus0 not configured

Friendly bump, anyone willing to look at this? Simple installer fix
for headless EFI machines.

Thanks!


> I can't find a better way to detect EFI via dmesg or sysctl hw, so a
> simple patch to install.md will have to suffice:
> ====
> diff --git distrib/amd64/common/install.md distrib/amd64/common/install.md
> index d4fc8418a97..0c9db939463 100644
> --- distrib/amd64/common/install.md
> +++ distrib/amd64/common/install.md
> @@ -35,7 +35,7 @@ MDXAPERTURE=2
>  MDXDM=y
>  NCPU=$(sysctl -n hw.ncpufound)
>
> -if dmesg | grep -q 'efifb0 at mainbus0'; then
> +if dmesg | egrep -q 'efifb0? at mainbus0'; then
>   MDEFI=y
>  fi
>
> ====

Reply via email to