1OSTREE CHECKOUT(1) ostree checkout OSTREE CHECKOUT(1)
2
3
4
6 ostree-checkout - Check out a commit into a filesystem
7
9 ostree checkout [OPTIONS...] {COMMIT} [DESTINATION]
10
12 Checks out the given commit into the filesystem under directory
13 DESTINATION. If DESTINATION is not specified, the COMMIT will become
14 the destination checkout target. If COMMIT destination already exists,
15 command will error unless --union option is selected.
16
18 --user-mode, -U
19 Do not change file ownership or initialize extended attributes.
20
21 --subpath="PATH"
22 Checkout sub-directory PATH.
23
24 --union
25 Keep existing directories and unchanged files, overwrite existing
26 files.
27
28 --union-add
29 Keep existing directories and files.
30
31 --union-identical
32 Like --union, but error out if a file would be replaced with a
33 different file. Add new files and directories, ignore identical
34 files, and keep existing directories. Requires -H.
35
36 --whiteouts
37 Process whiteout files (Docker style).
38
39 --allow-noent
40 Do nothing if specified path does not exist.
41
42 --from-stdin
43 Process many checkouts from standard input.
44
45 --from-file="FILE"
46 Process many checkouts from input file.
47
48 --fsync="POLICY"
49 POLICY is a boolean which specifies whether fsync should be used or
50 not. Default to true.
51
52 --require-hardlinks, -H
53 Do not fall back to full copies if hardlinking fails.
54
55 --force-copy-zerosized, -z
56 This option does nothing; the functionality is now always on by
57 default.
58
59 --force-copy, -C
60 Never hardlink (but may reflink if available).
61
62 --bareuseronly-dirs, -M
63 Suppress mode bits outside of 0775 for directories (suid, world
64 writable, etc.).
65
66 --skip-list="FILE"
67 Skip checking out the absolute file paths listed in FILE, one per
68 line.
69
70 --selinux-policy
71 Set SELinux labels based on policy in root filesystem PATH (may be
72 /). This implies --force-copy.
73
75 $ ostree checkout my-branch
76
77 $ ls
78
79 file1 file2 my-branch
80
81
82
83OSTree OSTREE CHECKOUT(1)