X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsystemd.offline-updates.xml;h=89c12b598bdacc2b6e2565c72f9c2bc5070706a0;hb=b0343f8c96e984211c24c3ba404f0a82b60244b4;hp=13fdfc28defac77e20d959b68a57f95a76f05a29;hpb=2011149a3c42c631c4168b7d5d4ec01bc87d8ee6;p=thirdparty%2Fsystemd.git diff --git a/man/systemd.offline-updates.xml b/man/systemd.offline-updates.xml index 13fdfc28def..89c12b598bd 100644 --- a/man/systemd.offline-updates.xml +++ b/man/systemd.offline-updates.xml @@ -1,10 +1,7 @@ - - - + @@ -38,13 +35,13 @@ The package manager prepares system updates by downloading all (RPM or DEB or whatever) packages to update off-line in a special directory - /var/lib/system-update (or + /var/lib/system-update (or another directory of the package/upgrade manager's choice). When the user OK'ed the update, the symlink /system-update is - created that points to /var/lib/system-update (or + created that points to /var/lib/system-update (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 /var is not available yet. @@ -109,12 +106,12 @@ To make things a bit more robust we recommend hooking the update script into - system-update.target via a .wants/ + system-update.target via a .wants/ symlink in the distribution package, rather than depending on systemctl enable in the postinst scriptlets of your package. More specifically, for your update script create a .service file, without [Install] section, and then add a symlink like - /usr/lib/systemd/system-update.target.wants/foobar.service - → ../foobar.service to your package. + /usr/lib/systemd/system-update.target.wants/foobar.service + → ../foobar.service to your package. @@ -136,7 +133,7 @@ The update service should declare DefaultDependencies=no, Requires=sysinit.target, After=sysinit.target, - After=system-update-pre.target + After=system-update-pre.target, Before=system-update.target and explicitly pull in any other services it requires. @@ -147,7 +144,7 @@ Wants=system-update-pre.target and Before=system-update-pre.target and add a symlink to that file under - /usr/lib/systemd/system-update.target.wants + /usr/lib/systemd/system-update.target.wants .