]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC EFI support for the installer
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 15 Sep 2014 17:49:46 +0000 (17:49 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 15 Sep 2014 17:49:46 +0000 (17:49 +0000)
commit9ebae82d07f1f289d66c03eed8e0d5bf953eb78b
tree6ec3d0a2e44e9d444b5d48068aa88b7d15d4a4e1
parent121ffe23c441ec4c16c76b52392a67cce81811a1
MFC EFI support for the installer

r264978 (nwhitehorn):

    Add EFI support to the installer. This requires that the kernel
    provide a sysctl to determine what firmware is in use. This sysctl
    does not exist yet, so the following blocks are in front of the
    wheels:
    - I've provisionally called this "hw.platform" after the equivalent
      thing on PPC
    - The logic to check the sysctl is short-circuited to always choose
      BIOS.  There's a comment in the top of the file about how to turn
      this off.

    If IA64 acquired a boot1.efifat-like thing (probably with very few
    modifications), the same code could be adapted there.

r265016 (nwhitehorn):

    Finish connecting up installer UEFI support. If the kernel was
    booted using EFI, set up the disks for an EFI system. If booted from
    BIOS/CSM, set up for BIOS.

r268256 (nwhitehorn):

    After EFI support was added to the installer, it needed to allow
    boot partitions of types other than "freebsd-boot" (in particular,
    "efi").  This allows the removal of some nasty hacks for supporting
    PowerPC systems, in particular aliasing freebsd-boot to apple-boot
    on APM and an IBM-specific code on MBR.

    This changes the installer to use the correct names, which also
    breaks a degeneracy in the meaning of "freebsd-boot" that allows the
    addition of support for some newer IBM systems that can boot from
    GPT in addition to MBR. Since I have no idea how to detect which
    those systems are, leave the default on IBM PPC systems as MBR for
    now.

Approved by: re
PR: 193658
Relnotes: Yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
14 files changed:
sbin/geom/class/part/gpart.8
sys/geom/part/g_part.c
sys/geom/part/g_part.h
sys/geom/part/g_part_apm.c
sys/geom/part/g_part_gpt.c
sys/geom/part/g_part_mbr.c
sys/sys/gpt.h
usr.sbin/bsdinstall/partedit/gpart_ops.c
usr.sbin/bsdinstall/partedit/partedit.h
usr.sbin/bsdinstall/partedit/partedit_generic.c
usr.sbin/bsdinstall/partedit/partedit_pc98.c
usr.sbin/bsdinstall/partedit/partedit_powerpc.c
usr.sbin/bsdinstall/partedit/partedit_sparc64.c
usr.sbin/bsdinstall/partedit/partedit_x86.c