blob: e95afd4016af7316f6aaa0e6e52b1a9ede9bbdab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
.\" $Id: installboot.8,v 1.6 2000/01/03 20:04:30 pjanzen Exp $
.\"
.Dd 31 May 1995
.Dt INSTALLBOOT 8 mvme88k
.Os
.Sh NAME
.Nm installboot
.Nd install a bootstrap on a UFS disk
.Sh SYNOPSIS
.Nm installboot
.Op Fl n
.Op Fl v
.Ar bootsd
.Ar bootxx
.Ar rawdev
.Sh DESCRIPTION
.Nm installboot
is used to install a "first-stage" boot program into the boot area
of a UFS disk partition, and initialize the table of block numbers the
.Ar bootxx
program uses to load the second-stage boot program.
.Pp
The options are as follows:
.Bl -tag -width flag
.It Fl n
Do not actually write anything on the disk.
.It Fl v
Be verbose, printing out the block numbers that
.Ar bootxx
will use to load
.Ar bootsd .
.El
.Pp
The arguments are:
.Bl -tag -width bootsd
.It Ar bootsd
the name of the second-stage boot program in the file system
where the first-stage boot program is to be installed.
.It Ar bootxx
the name of the prototype file for the first stage boot program.
.It Ar rawdev
the name of the raw device in which the first-stage boot program
is to be installed. This should correspond to the block device
on which the file system containing
.Ar ufsboot
is mounted.
.El
.Sh EXAMPLE
.Bd -literal -offset
cd /usr/mdec
cp bootsd /
installboot -v /bootsd ./bootxx /dev/rsd0a
.Ed
.Sh BUGS
.Nm installboot
requires simultaneous access to the mounted file system and
the raw device, but that is not allowed with the kernel
.Nm securelevel
variable set to a value greater than zero (the default), so
.Nm installboot
only works in single-user mode (or insecure mode - see
.Xr init 8 ).
.Sh SEE ALSO
.Xr disklabel 8 ,
.Xr init 8
|