[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dragonfly-commits
Subject:    git: gpt - Add a new directive called 'init'
From:       dillon () crater ! dragonflybsd ! org (Matthew Dillon)
Date:       2018-02-20 8:44:28
Message-ID: 20180220084428.22508B228B7C34 () crater ! dragonflybsd ! org
[Download RAW message or body]


commit bd2b9b6f0a7b343845c3917e37a2a908ff28bab3
Author: Matthew Dillon <dillon@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic