]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysupdate: Allow instances to be partial or pending
authorPhilip Withnall <pwithnall@gnome.org>
Tue, 30 Dec 2025 23:49:47 +0000 (23:49 +0000)
committerPhilip Withnall <pwithnall@gnome.org>
Mon, 9 Feb 2026 11:54:40 +0000 (11:54 +0000)
commitfdc661116d47797804b8042db91effc0c1e8fdd0
treeab9e0334551db68a72fd505176a78d947db92493
parentec10efa1a1af1881adb89d71eaf3916d61c73b96
sysupdate: Allow instances to be partial or pending

If we allow target instances to be partial or pending, we can build on
top of this to allow updates to be split into two phases: ‘acquire’ (which
takes an available source instance and copies it (temporarily partial) to
a pending target instance; and ‘install’ (which takes a pending target
instance and installs it as an installed target instance).

This commit introduces a file/directory and partition prefix naming
scheme to identify partial and pending instances.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: https://github.com/systemd/systemd/issues/34814
src/sysupdate/sysupdate-instance.h
src/sysupdate/sysupdate-resource.c