summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorMatthew Leeds <matthew.leeds@endlessm.com>2018-04-17 14:35:52 -0700
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-19 13:35:15 +0000
commit972a1921f517f5b2ae0aafed42224161fb4bb6d8 (patch)
treef0f6a82cc2987e5a077738e26c61d4010841db0b /man
parentcf7888840130d1fe718c36f2a1155c06ffb90e92 (diff)
downloadostree-972a1921f517f5b2ae0aafed42224161fb4bb6d8.tar.gz
man: Add man page for create-usb
Closes: #1543 Approved by: cgwalters
Diffstat (limited to 'man')
-rw-r--r--man/ostree-create-usb.xml127
-rw-r--r--man/ostree-find-remotes.xml6
-rw-r--r--man/ostree.xml9
3 files changed, 142 insertions, 0 deletions
diff --git a/man/ostree-create-usb.xml b/man/ostree-create-usb.xml
new file mode 100644
index 00000000..d250d915
--- /dev/null
+++ b/man/ostree-create-usb.xml
@@ -0,0 +1,127 @@
+<?xml version='1.0'?> <!--*-nxml-*-->
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<!--
+Copyright 2018 Matthew Leeds <matthew.leeds@endlessm.com>
+
+SPDX-License-Identifier: LGPL-2.0+
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the
+Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.
+-->
+
+<refentry id="ostree">
+
+ <refentryinfo>
+ <title>ostree create-usb</title>
+ <productname>OSTree</productname>
+
+ <authorgroup>
+ <author>
+ <contrib>Developer</contrib>
+ <firstname>Matthew</firstname>
+ <surname>Leeds</surname>
+ <email>matthew.leeds@endlessm.com</email>
+ </author>
+ </authorgroup>
+ </refentryinfo>
+
+ <refmeta>
+ <refentrytitle>ostree create-usb</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>ostree-create-usb</refname>
+ <refpurpose>Put the given refs on an external drive for P2P distribution.</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>ostree create-usb</command> <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="req">MOUNT-PATH</arg> <arg choice="req">COLLECTION-ID REF</arg> <arg choice="opt" rep="repeat">COLLECTION-ID REF</arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1>
+ <title>Description</title>
+
+ <para>
+ This command creates a repository in MOUNT-PATH and pulls the given
+ REF(s) into it so they can be found and pulled from (perhaps by another computer that's offline).
+ See
+ <citerefentry><refentrytitle>ostree-find-remotes</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ for more information on P2P distribution.
+ </para>
+ <para>
+ In order for ostree to pull refs from a mounted filesystem (such as
+ a USB drive) the repo must be in a standard location. Specifically,
+ subdirectories of <filename>.ostree/repos.d</filename> are checked,
+ then <filename>.ostree/repo</filename>, <filename>ostree/repo</filename>,
+ and <filename>var/lib/flatpak/repo</filename> are checked. By default
+ <command>ostree create-usb</command> uses <filename>.ostree/repo</filename>,
+ but if you specify another location using <option>--destination-repo</option>
+ a symbolic link will be created for you in <filename>.ostree/repos.d</filename>.
+ </para>
+ <para>
+ This command will regenerate the <filename>summary</filename> file
+ in the destination repo so that it stays accurate, so you shouldn't
+ try to use summary signatures in the destination repo. This
+ shouldn't be a concern because clients that support pulling from
+ USB mounts use signed per-repo and per-commit metadata instead of
+ summary signatures.
+ </para>
+ <para>
+ This command relies on the summary file in the source repo, so you
+ may want to run <command>ostree summary -u</command> before running
+ this command.
+ </para>
+ </refsect1>
+
+ <refsect1>
+ <title>Options</title>
+
+ <variablelist>
+ <varlistentry>
+ <term><option>--disable-fsync</option></term>
+
+ <listitem><para>
+ Do not invoke fsync().
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--destination-repo</option>=DEST</term>
+
+ <listitem><para>
+ Create the repository in DEST under MOUNT-PATH, rather than
+ the default location.
+ </para></listitem>
+ </varlistentry>
+
+ </variablelist>
+ </refsect1>
+
+ <refsect1>
+ <title>Example</title>
+ <para><command>ostree --repo=/var/lib/flatpak/repo create-usb /run/media/mwleeds/f6d04c7a-60f6-4ba3-bb96-0f40498675be com.exampleos.Apps app/org.kde.Khangman/x86_64/stable com.exampleos.Apps ostree-metadata com.exampleos.Apps appstream/x86_64</command></para>
+<programlisting>
+
+5 metadata, 213 content objects imported; 1 KiB transferred in 1 seconds Copied 3/3 refs successfully from ‘/var/lib/flatpak/repo’ to ‘.ostree/repo’ repository in ‘/run/media/mwleeds/f6d04c7a-60f6-4ba3-bb96-0f40498675be’.
+
+</programlisting>
+ </refsect1>
+</refentry>
diff --git a/man/ostree-find-remotes.xml b/man/ostree-find-remotes.xml
index f0208b7c..15f5a516 100644
--- a/man/ostree-find-remotes.xml
+++ b/man/ostree-find-remotes.xml
@@ -78,6 +78,12 @@ Boston, MA 02111-1307, USA.
default set of finders (sources for remotes) using the
<option>--finders</option> option documented below.
</para>
+ <para>
+ The <command>create-usb</command> command is the recommended way to
+ put refs on a USB such that <command>find-remotes</command> will
+ discover them. See
+ <citerefentry><refentrytitle>ostree-create-usb</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
+ </para>
</refsect1>
<refsect1>
diff --git a/man/ostree.xml b/man/ostree.xml
index 06076c45..8a79cd04 100644
--- a/man/ostree.xml
+++ b/man/ostree.xml
@@ -283,6 +283,15 @@ Boston, MA 02111-1307, USA.
</para></listitem>
</varlistentry>
+ <!-- FIXME: Uncomment this when it's no longer experimental
+ <varlistentry>
+ <term><citerefentry><refentrytitle>ostree-create-usb</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>
+
+ <listitem><para>
+ &nbsp;Put the given refs on an external drive for P2P distribution.
+ </para></listitem>
+ </varlistentry>-->
+
<varlistentry>
<term><citerefentry><refentrytitle>ostree-diff</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>