inpcb: Use netisr_ncpus for listing inpcbs.
[dragonfly.git] / usr.sbin / efisetup / efisetup.8
blob0abac86de84f2c9d8a5416d620cb9bf1dfbb463d
1 .\" Copyright (c) 2017 Matthew Dillon, All rights reserved.
2 .\"
3 .\" Redistribution and use in source and binary forms, with or without
4 .\" modification, are permitted provided that the following conditions
5 .\" are met:
6 .\" 1. Redistributions of source code must retain the above copyright
7 .\"    notice, this list of conditions and the following disclaimer.
8 .\" 2. Redistributions in binary form must reproduce the above copyright
9 .\"    notice, this list of conditions and the following disclaimer in the
10 .\"    documentation and/or other materials provided with the distribution.
11 .\"
12 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22 .\" SUCH DAMAGE.
23 .\"
24 .Dd March 22, 2017
25 .Dt EFISETUP 8
26 .Os
27 .Sh NAME
28 .Nm efisetup
29 .Nd Create a complete UEFI install on a fresh drive
30 .Sh SYNOPSIS
31 .Nm
32 .Op Fl s Ar swapsize{m,g}
33 .Op Fl S Ar serialno
34 .Ar drive
35 .Sh DESCRIPTION
36 This program will create a fresh UEFI install of DragonFly on a drive.
37 The drive will be completely reformatted and any prior contents will be
38 lost!
39 .Bl -tag -width 20m
40 .It Fl s Ar swapsize{m,g}
41 Specify the size of the swap partition, default is "8g".
42 .It Fl S Ar serialno
43 Specify the serial number of the device as it would appear
44 under
45 .Pa /dev/serno/* .
46 In most cases this is simply the reported serial number, however note that the
47 .Xr nvme 4
48 driver will tack on a namespace id to the reported serial number,
49 typically "-1".
50 Only specify the serial number, do not specify a path prefix.
51 If you use this option the script will install path references in fstab
52 and so forth using the
53 .Pa serno/
54 path.
55 If you do not use this option, the drive name will be used instead.
56 We recommend using this option.
57 .It Ar drive
58 Specify the drive, for example "nvme0".
59 You may omit the
60 .Pa /dev/
61 prefix if you wish.
62 The raw drive should be specified, do not specify a
63 .Pa serno/
64 path here.
65 .El
66 .Sh USAGE
67 .Nm
68 expects you to have completed a buildworld and buildkernel
69 sequence before running the program, see
70 .Xr build 7
71 for more information on how to build a fresh system.
72 .Pp
73 .Nm
74 will create a fresh GPT slice table with two slices,
75 install the required EFI boot files on slice 0, and
76 install a DragonFly 64-bit disklabel on slice 1.
77 The program will then proceed to create partitions 'a', 'b', and 'c'
78 in the disklabel, mount them, and install the world and kernel.
79 .Pp
80 After the world and kernel are installed,
81 .Nm
82 will make adjustments to the target
83 .Pa /boot/loader.conf ,
84 .Pa /etc/fstab ,
85 and
86 .Pa /etc/rc.conf
87 with the appropriate disk paths, then unmount.
88 .Pp
89 After completion of the operation you should be able to boot from the
90 drive and then finish up your adjustments to
91 .Pa /etc/rc.conf
92 to get the network up and so forth.
93 This script does only a very basic installation.
94 For a more substantial initial installation you should boot from a
95 .Dx
96 install image and select an EFI installation.
97 .Sh SEE ALSO
98 .Xr uefi 8
99 .Sh HISTORY
102 utility appeared in
103 .Dx 4.8 .