]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/discover-image.c
dissect-image: split DISSECT_IMAGE_REQUIRE_ROOT in two
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Mar 2021 16:41:18 +0000 (17:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Mar 2021 13:57:40 +0000 (14:57 +0100)
commit4b5de5dd6c930276628c84755d33187e2dfca5cc
tree95b821f1bd49dd0b08428b5eae496c75d9541b28
parent2679f407353aa408c5e48f86866a45390c247e45
dissect-image: split DISSECT_IMAGE_REQUIRE_ROOT in two

Previously, the flag did two things at once: enable support for using
generic partitions as root fs if there were only one/allow use of
partition-table-less images as root fs. And secondly, insist that there
was a rootfs, and fail if not. Let's split these two in two separate
options so that they can be used independently of each other.

There are cases where one wants to use one without the other (i.e. when
inspecting things with systemd-dissect tool it should be OK to do so
even if image has no root fs), and it's cleaner anyway.
12 files changed:
src/core/namespace.c
src/dissect/dissect.c
src/firstboot/firstboot.c
src/journal/journalctl.c
src/nspawn/nspawn.c
src/portable/portable.c
src/shared/discover-image.c
src/shared/dissect-image.c
src/shared/dissect-image.h
src/sysext/sysext.c
src/sysusers/sysusers.c
src/tmpfiles/tmpfiles.c