lib/deploy: Log SELinux policy refresh
authorJonathan Lebon <jonathan@jlebon.com>
Thu, 19 Oct 2023 15:35:25 +0000 (11:35 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Thu, 19 Oct 2023 15:41:10 +0000 (11:41 -0400)
commitbdac515ab5f3941fccbfb9580e2d9978863eb48d
treea92ea6a4025f6d2ea30c9c6882edc839a863c620
parent4085eee9ed676d43554c073fa9212ab6a29376a8
lib/deploy: Log SELinux policy refresh

I have a suspicion that the `semodule -N --refresh` we do here is
involved in https://github.com/coreos/fedora-coreos-tracker/issues/1597.
Let's log when we execute it and include its time.

While we're here, also log the time it takes to `syncfs()` and the
fsfreeze/thaw cycling. It's logged in a structured journal entry, but
that's less accessible than just having it in the journal message field.
src/libostree/ostree-sysroot-deploy.c