2 .\" Copyright (c) 2013 SRI International
3 .\" All rights reserved.
5 .\" This software was developed by SRI International and the University of
6 .\" Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
7 .\" ("CTSRD"), as part of the DARPA CRASH research programme.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 .Nd Tool to create root filesystem images given a tree containing a manifest
40 .Op Fl B Ar byte-order
41 .Op Fl e Ar extras-manifest
43 .Op Fl k Ar keydir Op Fl K Ar user
44 .Op Fl p Ar master.passwd Op Fl g Ar group
51 script creates a UFS filesystem image into
54 all filesystem objects listed in the
58 directory will be placed in the root of the UFS image
61 Images can be customized with a number of different flags:
62 .Bl -tag -width indent
63 .It Fl B Ar byte-order
64 Set the byte order of the image to
66 This argument is passed directly to
69 Enable debugging output.
71 Extra files listed in the
75 file are added to the filesystem image.
76 If no contents= tag is specified or a contents= tag is relative then
77 files are found relative to the basename of the full path of the
79 If a contents= tag is provided and it is an absolute path then the file
80 will be from that path.
82 Constrain set of filesystem objects included from
84 to those listed (one per line) in the
86 plus any required directories.
87 .It Fl k Ar keydir Op Fl K Ar user
88 Create a .ssh/authorized_keys file from a collection of public key files
91 and install it in the home directory of
95 argument is supplied then the files will be installed in the root user's
97 .It Fl p Ar master.passwd Op Fl g Ar group
100 file and optionally an alternative
104 Set the size of the image to
108 argument is passed directly to
112 .Bl -tag -width METALOG -compact
115 2.0 format manifest of permissions and ownership for files in the root
117 This file is generated by installworld, distribution, and installkernel.
120 .Dl $ makeroot.sh -k keys -K ctsrd -p extras/etc/master.passwd -g extras/etc/group -e extras/mdroot.mtree -e demo/demo.mtree -e extras/ctsrd.mtree -s 26112k -f demo.files cheribsd-demo.img /path/to/dist
126 This software and this manual page were developed by SRI International
127 and the University of Cambridge Computer Laboratory under DARPA/AFRL
131 as part of the DARPA CRASH research programme.