1*a17b2361Skrw.\" $OpenBSD: rdsetroot.8,v 1.4 2023/04/24 14:06:01 krw Exp $ 27829d1e3Sderaadt.\" 37829d1e3Sderaadt.\" Copyright (c) 2019 Theo de Raadt 47829d1e3Sderaadt.\" 57829d1e3Sderaadt.\" Permission to use, copy, modify, and distribute this software for any 67829d1e3Sderaadt.\" purpose with or without fee is hereby granted, provided that the above 77829d1e3Sderaadt.\" copyright notice and this permission notice appear in all copies. 87829d1e3Sderaadt.\" 97829d1e3Sderaadt.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 107829d1e3Sderaadt.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 117829d1e3Sderaadt.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 127829d1e3Sderaadt.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 137829d1e3Sderaadt.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 147829d1e3Sderaadt.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 157829d1e3Sderaadt.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 167829d1e3Sderaadt.\" 17*a17b2361Skrw.Dd $Mdocdate: April 24 2023 $ 187829d1e3Sderaadt.Dt RDSETROOT 8 197829d1e3Sderaadt.Os 207829d1e3Sderaadt.Sh NAME 217829d1e3Sderaadt.Nm rdsetroot 227829d1e3Sderaadt.Nd insert disk image into RAMDISK kernel 237829d1e3Sderaadt.Sh SYNOPSIS 247829d1e3Sderaadt.Nm rdsetroot 25*a17b2361Skrw.Fl s 26*a17b2361Skrw.Ar kernel 27*a17b2361Skrw.Nm rdsetroot 287829d1e3Sderaadt.Op Fl dx 297829d1e3Sderaadt.Ar kernel 307829d1e3Sderaadt.Op Ar disk.fs 317829d1e3Sderaadt.Sh DESCRIPTION 327829d1e3SderaadtThe 337829d1e3Sderaadt.Nm 347829d1e3Sderaadtutility inserts the file 357829d1e3Sderaadt.Ar disk.fs 367829d1e3Sderaadtinto the reserved space inside a RAMDISK kernel. 377829d1e3SderaadtIf 387829d1e3Sderaadt.Ar disk.fs 397829d1e3Sderaadtis not specified, 407829d1e3Sderaadt.Nm 417829d1e3Sderaadtreads from standard input. 427829d1e3Sderaadt.Pp 437829d1e3SderaadtThe options are as follows: 447829d1e3Sderaadt.Bl -tag -width Ds 457829d1e3Sderaadt.It Fl d 467829d1e3SderaadtDebug. 47*a17b2361Skrw.It Fl s 48*a17b2361SkrwPrint the size in bytes of the reserved space in the RAMDISK kernel. 49*a17b2361SkrwNo insertion or extraction is attempted. 507829d1e3Sderaadt.It Fl x 517829d1e3SderaadtRather than inserting, extract the 527829d1e3Sderaadt.Ar disk.fs 537829d1e3Sderaadtimage. 544493dc29SknIf 554493dc29Skn.Ar disk.fs 564493dc29Sknis not specified, 574493dc29Skn.Nm 584493dc29Sknwrites to standard output. 598a25dbb1SschwarzeThe disk can be made accessible using 607829d1e3Sderaadt.Xr vnconfig 8 , 617829d1e3Sderaadtfilesystems can be manipulated, and finally re-inserted into the RAMDISK kernel. 628a25dbb1Sschwarze.El 637829d1e3Sderaadt.Sh SEE ALSO 647829d1e3Sderaadt.Xr config 8 , 657829d1e3Sderaadt.Xr disklabel 8 , 667829d1e3Sderaadt.Xr vnconfig 8 67