]> git.ipfire.org Git - thirdparty/systemd.git/commit
gpt-auto-generator: do not apply image policy on the root fs and /usr/ fs 36629/head
authorLennart Poettering <lennart@poettering.net>
Thu, 6 Mar 2025 08:38:25 +0000 (09:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 6 Mar 2025 08:42:18 +0000 (09:42 +0100)
commit6d6538fb3f46b01dded23cc7eef5ed5ffe8b38e9
tree5c70e171d1a1b28b3f9a9581ccc55e4866e0efcb
parent87bffa1eae1023c2ee72c50270e40a44bbe97cba
gpt-auto-generator: do not apply image policy on the root fs and /usr/ fs

At the moment the gpt-auto generator does its things we already
transitioned into the host OS, i.e. the root fs and /usr/ are mounted.
Hence suppress image policy checks for those two partitions.

This actually matters, because the root hash/usr hash is taken into
consideration for the image policy checks, but we don't have that in
gpt-auto and hence would refuse operation claiming policy conflicts
event though we never actually operate on the root fs via the dissection
logic.
src/gpt-auto-generator/gpt-auto-generator.c