]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared: Add support for non-native architectures to dissect_image()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 23 Nov 2021 16:54:26 +0000 (17:54 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 24 Nov 2021 14:06:38 +0000 (15:06 +0100)
commit49ae9d91f9ba68bf3f1a6928152a5969d329bbc2
treebbdb2efd50a0e729e73c4985e7823b550665121f
parent6ddd80ae181635515924cf9cabcd8b39db6734b7
shared: Add support for non-native architectures to dissect_image()

To allow dissecting images of architectures other than the native
(or secondary) one, we add a third designator 'OTHER' to represent
architectures other than the native or secondary one.

If no partitions of the native or secondary arch are available, we
check if a root partition of any other arch is available and use that
instead if we found one.
src/shared/dissect-image.c
src/shared/dissect-image.h