mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-03 05:18:24 +03:00
Compare commits
7 Commits
0b0012e4e1
...
526f9bd991
Author | SHA1 | Date | |
---|---|---|---|
|
526f9bd991 | ||
|
8aaea0c65d | ||
|
45ddf3b798 | ||
|
aca6f17ff8 | ||
|
66f5a77ae6 | ||
|
786b38c2cf | ||
|
f10cbd100c |
@ -1,7 +1,7 @@
|
|||||||
AC_PREREQ([2.63])
|
AC_PREREQ([2.63])
|
||||||
dnl To perform a release, follow the instructions in `docs/CONTRIBUTING.md`.
|
dnl To perform a release, follow the instructions in `docs/CONTRIBUTING.md`.
|
||||||
m4_define([year_version], [2024])
|
m4_define([year_version], [2024])
|
||||||
m4_define([release_version], [10])
|
m4_define([release_version], [11])
|
||||||
m4_define([package_version], [year_version.release_version])
|
m4_define([package_version], [year_version.release_version])
|
||||||
AC_INIT([libostree], [package_version], [walters@verbum.org])
|
AC_INIT([libostree], [package_version], [walters@verbum.org])
|
||||||
is_release_build=no
|
is_release_build=no
|
||||||
|
@ -120,20 +120,25 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><varname>root.transient</varname></term>
|
<term><varname>root.transient</varname></term>
|
||||||
<listitem><para>A boolean value; the default is <literal>false</literal>.
|
<listitem><para>A boolean value; the default is <literal>false</literal>.
|
||||||
If this is set to <literal>true</literal>, then the <literal>/</literal> filesystem will be a writable <literal>overlayfs</literal>,
|
Setting this flag to <literal>true</literal> requires composefs (See <literal>composefs.enabled</literal>).
|
||||||
with the upper directory being a hidden directory (in the underlying system root filesystem) that will persist across reboots by default.
|
When enabled, the root mount point <literal>/</literal> will be an overlayfs whose contents will be stored
|
||||||
However, changes will <emphasis>be discarded</emphasis> on OS updates!
|
in a tmpfs, and hence discarded on OS upgrade or reboot.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Enabling this option can be very useful for cases such as packages (dpkg/rpm/etc) that write content into <literal>/opt</literal>,
|
This option is independent of <literal>etc.transient</literal> and <literal>sysroot.readonly</literal>;
|
||||||
particularly where they expect the target to be writable at runtime. To make that work, ensure that your <literal>/opt</literal>
|
|
||||||
directory is *not* a symlink to <literal>/var/opt</literal>, but is just an empty directory.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
Note the <literal>/usr</literal> mount point remains read-only by default. This option is independent of <literal>etc.transient</literal> and <literal>sysroot.readonly</literal>;
|
|
||||||
it is supported for example to have <literal>root.transient=true</literal> but <literal>etc.transient=false</literal> in which case changes to <literal>/etc</literal> continue
|
it is supported for example to have <literal>root.transient=true</literal> but <literal>etc.transient=false</literal> in which case changes to <literal>/etc</literal> continue
|
||||||
to persist across updates, with the default OSTree 3-way merge applied.
|
to persist across updates, with the default OSTree 3-way merge applied.
|
||||||
</para></listitem>
|
Also related to persistence it is important to emphasize that <literal>/sysroot</literal> (the physical root filesystem) is still persistent
|
||||||
|
by default; in-place OS upgrades can be applied.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Enabling this option can make it significantly easier to adopt an image-based model in some circumstances.
|
||||||
|
For example, if you have a configuration management system that is inspecting machine-specific state and
|
||||||
|
e.g. dynamically installing packages or applying configuration, it can more easily be adapted to
|
||||||
|
run on each boot, while still shifting a portion (or ideally most) image configuration to build time
|
||||||
|
as part of the base image/commit.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><varname>composefs.enabled</varname></term>
|
<term><varname>composefs.enabled</varname></term>
|
||||||
|
@ -107,7 +107,7 @@ export TEST_GPG_KEYHOME=${test_tmpdir}/gpghome
|
|||||||
export OSTREE_GPG_HOME=${test_tmpdir}/gpghome/trusted
|
export OSTREE_GPG_HOME=${test_tmpdir}/gpghome/trusted
|
||||||
|
|
||||||
assert_has_setfattr() {
|
assert_has_setfattr() {
|
||||||
if ! which setfattr 2>/dev/null; then
|
if ! command -v setfattr 2>/dev/null; then
|
||||||
fatal "no setfattr available to determine xattr support"
|
fatal "no setfattr available to determine xattr support"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -727,9 +727,9 @@ which_gpg () {
|
|||||||
local opt
|
local opt
|
||||||
|
|
||||||
# Prefer gpg2 in case gpg refers to gpg1
|
# Prefer gpg2 in case gpg refers to gpg1
|
||||||
if which gpg2 &>/dev/null; then
|
if command -v gpg2 &>/dev/null; then
|
||||||
gpg=gpg2
|
gpg=gpg2
|
||||||
elif which gpg &>/dev/null; then
|
elif command -v gpg &>/dev/null; then
|
||||||
gpg=gpg
|
gpg=gpg
|
||||||
else
|
else
|
||||||
# Succeed but don't return anything.
|
# Succeed but don't return anything.
|
||||||
|
@ -34,7 +34,7 @@ ostree_repo_init repo --mode=archive
|
|||||||
|
|
||||||
mkdir files
|
mkdir files
|
||||||
for bin in ${bindatafiles}; do
|
for bin in ${bindatafiles}; do
|
||||||
cp $(which ${bin}) files
|
cp $(command -v ${bin}) files
|
||||||
done
|
done
|
||||||
|
|
||||||
${CMD_PREFIX} ostree --repo=repo commit -b test -s test --tree=dir=files
|
${CMD_PREFIX} ostree --repo=repo commit -b test -s test --tree=dir=files
|
||||||
|
@ -35,7 +35,7 @@ ostree_repo_init repo --mode=archive
|
|||||||
|
|
||||||
mkdir files
|
mkdir files
|
||||||
for bin in ${bindatafiles}; do
|
for bin in ${bindatafiles}; do
|
||||||
cp $(which ${bin}) files
|
cp $(command -v ${bin}) files
|
||||||
done
|
done
|
||||||
|
|
||||||
${CMD_PREFIX} ostree --repo=repo commit -b test -s test --tree=dir=files
|
${CMD_PREFIX} ostree --repo=repo commit -b test -s test --tree=dir=files
|
||||||
|
@ -33,7 +33,7 @@ ostree_repo_init repo --mode=archive
|
|||||||
|
|
||||||
mkdir files
|
mkdir files
|
||||||
for bin in ${bindatafiles}; do
|
for bin in ${bindatafiles}; do
|
||||||
cp $(which ${bin}) files
|
cp $(command -v ${bin}) files
|
||||||
done
|
done
|
||||||
|
|
||||||
${CMD_PREFIX} ostree --repo=repo commit -b test -s test --tree=dir=files
|
${CMD_PREFIX} ostree --repo=repo commit -b test -s test --tree=dir=files
|
||||||
|
Loading…
Reference in New Issue
Block a user