xref: /openbsd/usr.sbin/rdsetroot/rdsetroot.8 (revision 09467b48)
1.\"	$OpenBSD: rdsetroot.8,v 1.2 2019/04/05 21:44:32 schwarze Exp $
2.\"
3.\" Copyright (c) 2019 Theo de Raadt
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: April 5 2019 $
18.Dt RDSETROOT 8
19.Os
20.Sh NAME
21.Nm rdsetroot
22.Nd insert disk image into RAMDISK kernel
23.Sh SYNOPSIS
24.Nm rdsetroot
25.Op Fl dx
26.Ar kernel
27.Op Ar disk.fs
28.Sh DESCRIPTION
29The
30.Nm
31utility inserts the file
32.Ar disk.fs
33into the reserved space inside a RAMDISK kernel.
34If
35.Ar disk.fs
36is not specified,
37.Nm
38reads from standard input.
39.Pp
40The options are as follows:
41.Bl -tag -width Ds
42.It Fl d
43Debug.
44.It Fl x
45Rather than inserting, extract the
46.Ar disk.fs
47image.
48The disk can be made accessible using
49.Xr vnconfig 8 ,
50filesystems can be manipulated, and finally re-inserted into the RAMDISK kernel.
51.El
52.Sh SEE ALSO
53.Xr config 8 ,
54.Xr disklabel 8 ,
55.Xr vnconfig 8
56