git: kernel - Change legacy MBR partition type from 0xA5 to 0x6C

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Sep 12 20:07:56 PDT 2017


commit 794d80aa519b394b3174f20776a6a667452422db
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Sep 12 16:42:08 2017 -0700

    kernel - Change legacy MBR partition type from 0xA5 to 0x6C
    
    * Should have done this years ago but finally change the legacy MBR
      partition type DragonFlyBSD uses from 0xA5 (which was shared with
      FreeBSD), to something different 0x6C.
    
    * Makes it less confusing for Grub.
    
    * Does not change EFI boot, which uses 16-byte UUIDs (we already have
      our own) and does not use 8-bit partition ids.
    
    * Boot code and kernel now recognize both 0xA5 and 0x6C.  Existing users
      do *NOT* need to reinstall their boot code.

Summary of changes:
 sbin/fdisk/fdisk.c               |  5 +++--
 sys/boot/pc32/boot0/boot0.S      |  8 ++++----
 sys/boot/pc32/boot2/boot1.S      | 23 ++++++++++-------------
 sys/boot/pc32/boot2/boot2.c      |  5 +++--
 sys/boot/pc32/libi386/biosdisk.c | 20 ++++++++++++++------
 sys/kern/subr_disk.c             |  4 +++-
 sys/kern/subr_diskmbr.c          |  7 ++++---
 sys/kern/subr_diskslice.c        |  4 +++-
 sys/sys/diskmbr.h                |  5 +++++
 9 files changed, 49 insertions(+), 32 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/794d80aa519b394b3174f20776a6a667452422db


-- 
DragonFly BSD source repository


More information about the Commits mailing list