git: installer: Add basic UEFI system setup.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Jan 15 11:41:48 PST 2017


commit 7b1aa074fcd99442a1345fb8a695b62d01d9c7fd
Author: Sascha Wildner <saw at online.de>
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.
    
    [1] https://technet.microsoft.com/en-us/library/hh824839.aspx#DiskPartitionRules

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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7b1aa074fcd99442a1345fb8a695b62d01d9c7fd


-- 
DragonFly BSD source repository



More information about the Commits mailing list