Merge pull request #8985 from anonymouse64/bugfix/check-new-top-level-dirs-layouts
snap/validate.go: disallow snap layouts with new top-level directories
We previously wouldn't fail on verification for snaps that used new top-level directories, and would fail at runtime, which produces a very unhelpful message.
Also adjust some test yamls in interfaces/mount tests, which are not valid as they are for new top-level directories in /.
Finally, add an additional unit test for the test case with LP #1831010 that is already covered by spread tests, but not yet by unit tests.
Merge pull request #8907 from pedronis/asserts-find-sequence
FindSequence finds an assertion for the given headers and after for a
sequence-forming type. The provided headers must contain a sequence key,
i.e. a prefix of the primary key for the assertion type except for the
sequence number header. The assertion is the first in the sequence under the
sequence key with sequence number > after. If after is -1 it returns instead
the assertion with the largest sequence number.