-.\" $OpenBSD: rdsetroot.8,v 1.2 2019/04/05 21:44:32 schwarze Exp $
+.\" $OpenBSD: rdsetroot.8,v 1.3 2023/01/20 17:15:22 kn Exp $
.\"
.\" Copyright (c) 2019 Theo de Raadt
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: April 5 2019 $
+.Dd $Mdocdate: January 20 2023 $
.Dt RDSETROOT 8
.Os
.Sh NAME
Rather than inserting, extract the
.Ar disk.fs
image.
+If
+.Ar disk.fs
+is not specified,
+.Nm
+writes to standard output.
The disk can be made accessible using
.Xr vnconfig 8 ,
filesystems can be manipulated, and finally re-inserted into the RAMDISK kernel.
-/* $OpenBSD: rdsetroot.c,v 1.3 2021/10/24 21:24:19 deraadt Exp $ */
+/* $OpenBSD: rdsetroot.c,v 1.4 2023/01/20 17:15:22 kn Exp $ */
/*
* Copyright (c) 2019 Sunil Nimmagadda <sunil@openbsd.org>
{
extern char *__progname;
- fprintf(stderr, "usage: %s [-dx] bsd [fs]\n", __progname);
+ fprintf(stderr, "usage: %s [-dx] kernel [disk.fs]\n", __progname);
exit(1);
}