-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathcpio.1
More file actions
68 lines (66 loc) · 1.76 KB
/
cpio.1
File metadata and controls
68 lines (66 loc) · 1.76 KB
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
.TH cpio 1
'''
.SH NAME
\fBcpio\fR \- initramfs image manipulation tool
'''
.SH SYNOPSIS
\fBcpio\fR [\fBc\fR|\fBcreate\fR] \fIfile.cpio\fR \fIdirectory\fR
.br
Pack the contents of \fIdirectory\fR into \fIfile.cpio\fR.
.P
\fBcpio\fR [\fBx\fR|\fBextract\fR] \fIfile.cpio\fR \fIdirectory\fR
.br
Unpack \fIfile.cpio\fR into \fIdirectory\fR.
.P
\fBcpio\fR [\fBp\fR|\fBpack\fR] \fIfile.cpio\fR \fIinput.list\fR [\fIdirectory\fR]
.br
Create archive containing files listed in \fIinput.list\fR.
.P
\fBcpio\fR [\fBt\fR|\fBlist\fR] \fIfile.cpio\fR
.br
List file names packed in \fIfile.cpio\fR.
'''
.SH NOTES
This tool is only meant to be used to pack, unpack and examine initramfs
images for Linux.
'''
.SH ARCHIVE DESCRIPTION FORMAT
The \fBpack\fR command takes a text file in the following format:
.P
.ni
# comment
path/to/foo.bin
> some/dir
path/to/bar.bin
@link-name path/to/target
=file-name path/to/source
> some/other/dir
path/to/another/file.img
.fi
.P
Each non-prefix line is a path name to a file in the local filesystem.
The file will be opened using its path name, but in the archive only its base
name will remain. The \fB>\fR lines describe the directory structure within
the archive. Files following a directory line are packed inside that directory
within the archive.
.P
The example above describes an archive with the following structure:
.P
.ni
foo.bin
some/dir/bar.bin
some/dir/link-name
some/other/dir/file.img
.fi
.P
The description instructs \fBcpio\fR to read the contents for \fIfoo.bin\fR,
\fIbar.bin\fR and \fIfile.img\fR from local files named respectively
.P
.ni
path/to/foo.bin
path/to/bar.bin
path/to/another/file.img
.fi
.P
and create a symlink \fIsome/dir/link-name\fR within the archive poiting to
\fIpath/to/target\fR.