diff options
author | Eric Curtin <ecurtin@redhat.com> | 2023-04-17 23:09:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-04-25 17:40:41 +0200 |
commit | b9dac418372401742609bd600f05267ae3a724de (patch) | |
tree | 6de7b81b4c4deff66a693aab495d32ddd5209df2 /man/systemd.offline-updates.xml | |
parent | Merge pull request #27347 from bluca/sd_bus_nonce (diff) | |
download | systemd-b9dac418372401742609bd600f05267ae3a724de.tar.xz systemd-b9dac418372401742609bd600f05267ae3a724de.zip |
Support /etc/system-update for OSTree systems
This is required when / is immutable and cannot be written at runtime.
Co-authored-by: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'man/systemd.offline-updates.xml')
-rw-r--r-- | man/systemd.offline-updates.xml | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/man/systemd.offline-updates.xml b/man/systemd.offline-updates.xml index 6706451766..7285f9e263 100644 --- a/man/systemd.offline-updates.xml +++ b/man/systemd.offline-updates.xml @@ -40,18 +40,20 @@ </listitem> <listitem> - <para>When the user OK'ed the update, the symlink <filename>/system-update</filename> is - created that points to <filename index="false">/var/lib/system-update</filename> (or - wherever the directory with the upgrade files is located) and the system is rebooted. This - symlink is in the root directory, since we need to check for it very early at boot, at a - time where <filename>/var/</filename> is not available yet.</para> + <para>When the user OK'ed the update, the symlink <filename>/system-update</filename> or + <filename>/etc/system-update</filename> is created that points to + <filename index="false">/var/lib/system-update</filename> (or wherever the directory with + the upgrade files is located) and the system is rebooted. This symlink is in the root + directory, since we need to check for it very early at boot, at a time where + <filename>/var/</filename> is not available yet.</para> </listitem> <listitem> <para>Very early in the new boot <citerefentry><refentrytitle>systemd-system-update-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry> - checks whether <filename>/system-update</filename> exists. If so, it (temporarily and for - this boot only) redirects (i.e. symlinks) <filename>default.target</filename> to + checks whether <filename>/system-update</filename> or + <filename>/etc/system-update</filename> exists. If so, it (temporarily and for this boot + only) redirects (i.e. symlinks) <filename>default.target</filename> to <filename>system-update.target</filename>, a special target that pulls in the base system (i.e. <filename>sysinit.target</filename>, so that all file systems are mounted but little else) and the system update units.</para> @@ -68,12 +70,13 @@ <listitem> <para>As the first step, an update service should check if the - <filename>/system-update</filename> symlink points to the location used by that update - service. In case it does not exist or points to a different location, the service must exit - without error. It is possible for multiple update services to be installed, and for multiple - update services to be launched in parallel, and only the one that corresponds to the tool - that <emphasis>created</emphasis> the symlink before reboot should perform any actions. It - is unsafe to run multiple updates in parallel.</para> + <filename>/system-update</filename> or <filename>/etc/system-update</filename> symlink + points to the location used by that update service. In case it does not exist or points to a + different location, the service must exit without error. It is possible for multiple update + services to be installed, and for multiple update services to be launched in parallel, and + only the one that corresponds to the tool that <emphasis>created</emphasis> the symlink + before reboot should perform any actions. It is unsafe to run multiple updates in + parallel.</para> </listitem> <listitem> @@ -88,14 +91,16 @@ <para>The update scripts should exit only after the update is finished. It is expected that the service which performs the update will cause the machine to reboot after it is done. If the <filename>system-update.target</filename> is successfully reached, i.e. - all update services have run, and the <filename>/system-update</filename> symlink still - exists, it will be removed and the machine rebooted as a safety measure.</para> + all update services have run, and the <filename>/system-update</filename> or + <filename>/etc/system-update</filename> symlink still exists, it will be removed and + the machine rebooted as a safety measure.</para> </listitem> <listitem> - <para>After a reboot, now that the <filename>/system-update</filename> symlink is gone, - the generator won't redirect <filename>default.target</filename> anymore and the system - now boots into the default target again.</para> + <para>After a reboot, now that the <filename>/system-update</filename> and + <filename>/etc/system-update</filename> symlink is gone, the generator won't redirect + <filename>default.target</filename> anymore and the system now boots into the default + target again.</para> </listitem> </orderedlist> </refsect1> @@ -115,8 +120,9 @@ </listitem> <listitem> - <para>Make sure to remove the <filename>/system-update</filename> symlink as early as - possible in the update script to avoid reboot loops in case the update fails.</para> + <para>Make sure to remove the <filename>/system-update</filename> and + <filename>/etc/system-update</filename> symlinks as early as possible in the update + script to avoid reboot loops in case the update fails.</para> </listitem> <listitem> |