dissect: always invalidate secondary arch partitions if we found primary arch
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Sep 2020 15:32:34 +0000 (17:32 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 20 Sep 2020 10:06:22 +0000 (12:06 +0200)
commit418cf0e78c067f7249f4769f78c8c199d907935f
tree4a2ccb976a7f00578e5681e89eb659745dc9508d
parent1d17c00260a923188363fc32363ff8b6bae06230
dissect: always invalidate secondary arch partitions if we found primary arch

Let's suppress the secondary arch data, since we never ever want to
mount it if we found the primary arch.

Previously we only suppressed in the Verity case, but there's little
reason to entertain the idea of a secondary arch in non-Verity
environments either, we are not going to use them, and should not do
decryption or anything like that.

(cherry picked from commit 74cb2db9f403dfe17cabc6dac48b0f49a84eb03f)
src/shared/dissect-image.c