-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ostree composefs-generate command
This allows you to build a composefs based on a single commit, or by unioning several commits on top of each others.
- Loading branch information
1 parent
19c42b9
commit 9950f10
Showing
6 changed files
with
380 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?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 2014 Anne LoVerso <[email protected]> | ||
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, see <https://www.gnu.org/licenses/>. | ||
--> | ||
|
||
<refentry id="ostree"> | ||
|
||
<refentryinfo> | ||
<title>ostree composefs-generate</title> | ||
<productname>OSTree</productname> | ||
|
||
<authorgroup> | ||
<author> | ||
<contrib>Developer</contrib> | ||
<firstname>Colin</firstname> | ||
<surname>Walters</surname> | ||
<email>[email protected]</email> | ||
</author> | ||
</authorgroup> | ||
</refentryinfo> | ||
|
||
<refmeta> | ||
<refentrytitle>ostree composefs-generate</refentrytitle> | ||
<manvolnum>1</manvolnum> | ||
</refmeta> | ||
|
||
<refnamediv> | ||
<refname>ostree-composefs-generate</refname> | ||
<refpurpose>Create a composefs image out of commits</refpurpose> | ||
</refnamediv> | ||
|
||
<refsynopsisdiv> | ||
<cmdsynopsis> | ||
<command>ostree composefs-generate</command> <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="req">COMMIT</arg> <arg choice="opt">DESTINATION</arg> | ||
</cmdsynopsis> | ||
</refsynopsisdiv> | ||
|
||
<refsect1> | ||
<title>Description</title> | ||
|
||
<para> | ||
Creates a composefs image out the given commit(s) into the filesystem under directory DESTINATION. If DESTINATION is not specified, the COMMIT will become the destination checkout target. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1> | ||
<title>Options</title> | ||
|
||
<variablelist> | ||
|
||
<varlistentry> | ||
<term><option>--subpath</option>="PATH"</term> | ||
|
||
<listitem><para> | ||
Checkout sub-directory PATH. | ||
</para></listitem> | ||
</varlistentry> | ||
|
||
<varlistentry> | ||
<term><option>--union-add</option></term> | ||
|
||
<listitem><para> | ||
When combining multiple commits, keep existing files. The default is to overwrite existing files. | ||
</para></listitem> | ||
</varlistentry> | ||
|
||
<varlistentry> | ||
<term><option>--union-identical</option></term> | ||
|
||
<listitem><para>When combining multiple commits, error out | ||
if a file would be replaced with a different file. Add new files | ||
and directories, ignore identical files, and keep existing | ||
directories. | ||
</varlistentry> | ||
|
||
<varlistentry> | ||
<term><option>--whiteouts</option></term> | ||
|
||
<listitem><para> | ||
Process whiteout files (Docker style). | ||
</para></listitem> | ||
</varlistentry> | ||
|
||
<varlistentry> | ||
<term><option>--from-stdin</option></term> | ||
|
||
<listitem><para> | ||
Process many checkouts from standard input. | ||
</para></listitem> | ||
</varlistentry> | ||
|
||
<varlistentry> | ||
<term><option>--from-file</option>="FILE"</term> | ||
|
||
<listitem><para> | ||
Process many checkouts from input file. | ||
</para></listitem> | ||
</varlistentry> | ||
|
||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1> | ||
<title>Example</title> | ||
<para><command>$ ostree composefs-generate --repo=/my/repo my-branch image.cfs</command></para> | ||
</refsect1> | ||
</refentry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.