File: jigit-mkimage.1

package info (click to toggle)
jigit 1.19-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,760 kB
  • sloc: sh: 10,414; ansic: 5,690; perl: 507; makefile: 121
file content (137 lines) | stat: -rw-r--r-- 5,199 bytes parent folder | download | duplicates (3)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
.TH MKIMAGE 1 "September 2004" "Jigit jigdo tools"
.SH NAME
mkimage \- Create an ISO image from jigdo files
.SH SYNOPSIS
.B mkimage
\-j \fjigdo\fR \-t \ftemplate\fR
[\fIoptions\fR]... 
.PP
.B mkimage
\-t \ftemplate\fR \-z
[\fIoptions\fR]... 
.PP
.B mkimage
\-f \fmd5\-list\fR -t \ftemplate\fR \-M \fmissing\-list\fR
[\fIoptions\fR]... 
.SH DESCRIPTION
.PP
mkimage knows how to parse a jigdo template file, commonly used when
creating Debian CDs and DVDs. It can be used to actually convert a
template file and associated files into an ISO image (hence the name
mkimage), or with some command line options it will output useful
information about the template file instead.
.TP
\fB\-t template file\fR
The jigdo .template file is the most important thing that mkimage
needs, and must be specified for all operations.
.TP
\fB\-j jigdo file\fR
The jigdo .jigdo file will normally acompany the .template file. To
rebuild the image you must specify \fBat least\fR one of the jigdo file and
an MD5 file (\fB\-f\fR).
.TP
\fB\-f MD5 file\fR
A file listing files available locally and their MD5 sums, in the same
format as used by genisoimage:
.sp
.RS +.2i
.ta 2.0i 2.0i 5.0i
.nf
MD5sum   File size  Path
32 chars 12 chars   to end of line
.fi
.RE
.IP
.PP
The MD5sum must be written in standard hexadecimal notation, the
file size must list the size of the file in bytes, and the path
must list the absolute path to the file. For example:
.sp
.nf
00006dcd58ff0756c36d2efae21be376         14736  /mirror/debian/file1
000635c69b254a1be8badcec3a8d05c1        211822  /mirror/debian/file2
00083436a3899a09633fc1026ef1e66e         22762  /mirror/debian/file3
.fi
.PP
To rebuild an image you must specify \fBat least\fR one of the
MD5 file and a jigdo file (\fB\-j\fR).
.TP
\fB\-m item=path\fR
Used in conjunction with a jigdo file; specify where mkimage should
look on the local filesystem to find the files it needs to make an
image. (e.g. "Debian=/mirror/debian").
.TP
\fB\-M missing file\fR
If you're not sure if you have all the files needs to create an image,
specify \fBboth\fR the jigdo file and an MD5 file along with the
template file and \-M <file>. mkimage will check to see that all the
files are available \fBinstead of\fR building the image. Any files
that are missing will be listed in the file specified here. See jigit
for usage examples.
.TP
\fB\-v\fR
Make mkimage more verbose. Additional -v arguments will make it
more verbose again. Default level is 0 (almost no output). 1 will
print progress in % while the image is being created; 2 will list
every file and data block that is appended to the image.
.TP
\fB\-l logfile\fR
mkimage will normally write to stderr when it reports
progress. Specify a logfile (or /dev/null) if you want it elsewhere.
.TP
\fB\-O\fR
Skip checking the validity of specified jigdo files. mkimage will
normally check for the "JigsawDownload" header as a sanity check, but
some very old jigdo files produced by Debian pre-dated the addition of
this header.
.TP
\fB\-o outfile\fR
mkimage will normally write the ISO image to stdout, ready for piping
into cdrecord or to iso-image.pl. Specify an output filename if you
want it written to disk instead.
.TP
\fB\-q\fR
mkimage will normally check the MD5 sum of every file it reads and
writes, and will fail if it finds any mismatches. Specify \fB-q\fR to
tell it not to. This will normally run more quickly, but can leave you
with a broken image so is \fBPOTENTIALLY DANGEROUS\fR. Use with care!
.TP
\fB\-s start offset\fR
Rather than start at the beginning of the image, skip to the specified
offset and start output there. Probably only useful in iso-image.pl
when resuming a download. Specifying a non-zero offset also implies
\fB-q\fR, as it's difficult to check MD5 sums when you're not checking
the whole image.
\fB\-e end offset\fR
Rather than end at the end of the image, stop at the specified
offset. Probably only useful in iso-image.pl when resuming a
download. Specifying an end offset also implies \fB-q\fR, as it's
difficult to check MD5 sums when you're not checking the whole image.
.TP
\fB\-z\fR
Simply parse the template file and print the size of the image that
would be generated, in bytes. Only needs the template file to be
specified, any other arguments will ignored.
.SH "EXAMPLES"
.TP
\fBmkimage -f MD5 -j test.jigdo -t test.template -M missing\fR
Read in the files MD5, test.jigdo and test.template and check if all
the needed files are available. If any are missing, list them in missing.
.TP
\fBmkimage -z -t test.template\fR
Find out how big the ISO image would be from expanding test.template.
.TP
\fBmkimage -v -f MD5 -t test.template -o test.iso\fR
Build the iso image in test.iso, using files listed in MD5 to fill in
what's needed by the template file test.template. Show progress as the
image is built.
.SH "SEE ALSO"
\fBjigdo-file\fP(1), \fBjigit\fP(1), \fBjigsum\fP(1) and \fBjigdump\fP(1).
.SH "COPYRIGHT"
Copyright 2004 Steve McIntyre (steve@einval.com)
.PP
mkimage may be copied under the terms and conditions of version 2
of the GNU General Public License, as published by the Free
Software Foundation (Cambridge, MA, USA).
.SH "AUTHOR"
Written by Steve McIntyre (steve@einval.com)