sysupdate: Support volatile-root for finding the root partition
authorreuben olinsky <reubeno@users.noreply.github.com>
Tue, 1 Nov 2022 05:58:52 +0000 (22:58 -0700)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Nov 2022 15:31:22 +0000 (16:31 +0100)
commitf8a7112c4728222c1ca1fe746c1c93382d2e90cd
treecca6e70f6c1b50ba5acee022476caa82959a482e
parentd995ccd7b55f403846093ceb61a149c9f52247d7
sysupdate: Support volatile-root for finding the root partition

The existing logic can't find the root device in scenarios where
the root has been replaced with an overlay. We support looking
at "/run/systemd/volatile-root" to find the original root, similar
to what systemd-repart and gpt-auto-generator do.
src/sysupdate/sysupdate-resource.c