aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-13 15:45:10 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-15 15:44:30 +0200
commit46b30ac7559ca26f5446b05d852eaaefe432a290 (patch)
treeb3e21af955ac9d8c22d523ceea851585a78798d9
parente2f9334cd84ff8dd4c65c850825e089a6c747601 (diff)
Add man page for sqfs2tar
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--doc/Makemodule.am2
-rw-r--r--doc/sqfs2tar.150
2 files changed, 51 insertions, 1 deletions
diff --git a/doc/Makemodule.am b/doc/Makemodule.am
index 6b31eec..5141be5 100644
--- a/doc/Makemodule.am
+++ b/doc/Makemodule.am
@@ -1 +1 @@
-dist_man1_MANS += doc/gensquashfs.1 doc/rdsquashfs.1
+dist_man1_MANS += doc/gensquashfs.1 doc/rdsquashfs.1 doc/sqfs2tar.1
diff --git a/doc/sqfs2tar.1 b/doc/sqfs2tar.1
new file mode 100644
index 0000000..a999dff
--- /dev/null
+++ b/doc/sqfs2tar.1
@@ -0,0 +1,50 @@
+.TH SQFS2TAR "1" "June 2019" "sqfs2tar" "User Commands"
+.SH NAME
+sqfs2tar \- turn a squashfs image into a tar archive
+.SH SYNOPSIS
+.B sqfs2tar
+[\fI\,OPTIONS\/\fR...] \fI\,<sqfsfile>\/\fR
+.SH DESCRIPTION
+Read a squashfs archive and turn it into a tar archive, written to stdout.
+
+The idea is to quickly and painlessly turn a squashfs filesystem image into
+a tar archive that can then be examined and processed by any tool that can
+work on tar archives.
+.PP
+Possible options:
+.TP
+\fB\-\-help\fR, \fB\-h\fR
+Print help text and exit.
+.TP
+\fB\-\-version\fR, \fB\-V\fR
+Print version information and exit.
+.SH LIMITATIONS
+To be compatible with as many tools as possible, the output format is POSIX tar
+using pax extensions if necessary, so the tools you intend to use should
+support the pax format.
+
+It is not possible to store socket files in a tar or pax archive. Also, in the
+current implementation, all extended attribuates are lost.
+
+If any file or directory is encountered that cannot be converted, it is
+skipped and a warning is written to stderr.
+.SH EXAMPLES
+Turn a squashfs image into a tar archive:
+.IP
+sqfs2tar rootfs.sqfs > rootfs.tar
+.TP
+Turn a squashfs image into a gzip'ed tar archive:
+.IP
+sqfs2tar rootfs.sqfs | gzip > rootfs.tar.gz
+.TP
+Turn a squashfs image into an LZMA2 compressed tar archive:
+.IP
+sqfs2tar rootfs.sqfs | xz > rootfs.tar.xz
+.SH AUTHOR
+Written by David Oberhollenzer.
+.SH COPYRIGHT
+Copyright \(co 2019 David Oberhollenzer
+License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
+.br
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.