1OSTREE CREATE-USB(1)           ostree create-usb          OSTREE CREATE-USB(1)
2
3
4

NAME

6       ostree-create-usb - Put the given refs on an external drive for P2P
7       distribution.
8

SYNOPSIS

10       ostree create-usb [OPTIONS...] {MOUNT-PATH} {COLLECTION-ID REF}
11                         [COLLECTION-ID REF...]
12

DESCRIPTION

14       This command creates a repository in MOUNT-PATH and pulls the given
15       REF(s) into it so they can be found and pulled from (perhaps by another
16       computer that's offline). See ostree-find-remotes(1) for more
17       information on P2P distribution.
18
19       In order for ostree to pull refs from a mounted filesystem (such as a
20       USB drive) the repo must be in a standard location. Specifically,
21       subdirectories of .ostree/repos.d are checked, then .ostree/repo,
22       ostree/repo, and var/lib/flatpak/repo are checked. By default ostree
23       create-usb uses .ostree/repo, but if you specify another location using
24       --destination-repo a symbolic link will be created for you in
25       .ostree/repos.d.
26
27       This command will regenerate the summary file in the destination repo
28       so that it stays accurate, so you shouldn't try to use summary
29       signatures in the destination repo. This shouldn't be a concern because
30       clients that support pulling from USB mounts use signed per-repo and
31       per-commit metadata instead of summary signatures.
32
33       This command relies on the summary file in the source repo, so you may
34       want to run ostree summary -u before running this command.
35

OPTIONS

37       --disable-fsync
38           Do not invoke fsync().
39
40       --destination-repo=DEST
41           Create the repository in DEST under MOUNT-PATH, rather than the
42           default location.
43

EXAMPLE

45       ostree --repo=/var/lib/flatpak/repo create-usb
46       /run/media/mwleeds/f6d04c7a-60f6-4ba3-bb96-0f40498675be
47       com.exampleos.Apps app/org.kde.Khangman/x86_64/stable
48       com.exampleos.Apps ostree-metadata com.exampleos.Apps appstream/x86_64
49
50
51           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’.
52
53
54
55
56OSTree                                                    OSTREE CREATE-USB(1)
Impressum