git: gpt - Add a new directive called 'init'

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Feb 20 00:44:28 PST 2018


commit bd2b9b6f0a7b343845c3917e37a2a908ff28bab3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Feb 20 00:39:01 2018 -0800

    gpt - Add a new directive called 'init'
    
    * Add a new directive called 'init'.  This directive works like
      gpt create except it will also create a msdos slice 0 (and newfs_msdos
      it), and a "DragonFly Label64" slice 1, and
      'disklabel -r -w <slice1> auto'.
    
    * If -B is also specified, the init directive will populate the msdos
      filesystem with efi/boot/bootx64.efi, and also supplies -B to the
      disklabel command.
    
    * This command does not create the boot, swap, or root filesystem
      partitions in the disklabel.  It is meant to do something similar
      to what fdisk -IB used to do for us for legacy partitions (though
      I should note that fdisk -IB didn't initialize a new disklabel).  But
      we do for gpt.

Summary of changes:
 sbin/gpt/add.c     |  20 +++++++
 sbin/gpt/create.c  | 154 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 sbin/gpt/destroy.c |  15 +++++-
 sbin/gpt/gpt.8     |  21 ++++++++
 sbin/gpt/gpt.c     |   1 +
 sbin/gpt/gpt.h     |   4 ++
 6 files changed, 211 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bd2b9b6f0a7b343845c3917e37a2a908ff28bab3


-- 
DragonFly BSD source repository


More information about the Commits mailing list