shutdown: don't attempt to detach DM volume backing /usr/
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Jun 2023 09:08:07 +0000 (11:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Jun 2023 13:56:06 +0000 (15:56 +0200)
commit31d346206cef3c6b280495fa93310f9790f9ef02
tree73e23001b6501b43b0ef3ff3496ec203fdfe4ee7
parentf5fcacdf2cb1dee456f7e5ae698caa3aaa1677b8
shutdown: don't attempt to detach DM volume backing /usr/

Since we run off /usr/ it makes no sense to attempt to try to detach any
DM device backing it. Hence skip it just like we skip detaching the DM
device backing the root fs.

Addresses: https://github.com/systemd/systemd/issues/27682#issuecomment-1573328188
src/shutdown/detach-dm.c