gpt - Add a new directive called 'init'
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 20 Feb 2018 08:39:01 +0000 (00:39 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 20 Feb 2018 08:44:26 +0000 (00:44 -0800)
commitbd2b9b6f0a7b343845c3917e37a2a908ff28bab3
treea6c8296eeb2e235ded81c129937eb9329bde8b64
parent3014ccc0b6da428a97b548ac0b2481175f0af7d5
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.
sbin/gpt/add.c
sbin/gpt/create.c
sbin/gpt/destroy.c
sbin/gpt/gpt.8
sbin/gpt/gpt.c
sbin/gpt/gpt.h