git: installer: Add basic UEFI system setup.

Sascha Wildner swildner at
Sun Jan 15 11:41:48 PST 2017

commit 7b1aa074fcd99442a1345fb8a695b62d01d9c7fd
Author: Sascha Wildner <saw at>
Date:   Sun Jan 15 20:32:06 2017 +0100

    installer: Add basic UEFI system setup.
    GPT partition 0 is a 128MB FAT32 EFI system partition. Microsoft
    recommends at least 100MB and FAT32 in [1]. Partition 1 is a
    "DragonFly Label64" (aka "dragonfly" in gpt(8)) for the rest of
    the disk. It is analogous to slice 1 in our MBR setup, and has the
    same name, e.g. /dev/da0s1. The rest of the UEFI setup is identical
    to an MBR setup. disklabel64, newfs*, and so forth.
    We currently only support installing DragonFly to the whole disk
    in UEFI mode, and we don't set any NVRAM EFI variables during
    installation, so for now we are copying our stage 1 loader to
    \EFI\BOOT\BOOTX64.EFI on the EFI system partition.
    Also, there isn't any support for Secure Boot.

Summary of changes:
 share/installer/cmdnames.conf                 |   2 +
 usr.sbin/installer/dfuibe_installer/flow.c    |  60 +++++++++++++--
 usr.sbin/installer/dfuibe_installer/flow.h    |   2 +
 usr.sbin/installer/dfuibe_installer/fn.h      |   3 +-
 usr.sbin/installer/dfuibe_installer/fn_disk.c | 104 +++++++++++++++++++++++++-
 5 files changed, 164 insertions(+), 7 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list