mkosi fails due to missing hookdir and missing cachedir

Description:

Building mkosi images on Arch currently fails with two different issues due to regressions in Pacman 7.1:

Would you perhaps cherry-pick these two commits? Both change just a single line, so the should be fairly easy to pick.

This notably breaks Arch mkosi image builds on OBS.

Additional info:

  • package version(s): 26-1
  • config and/or log files: n/a
  • link to upstream bug report, if any: see above

Steps to reproduce:

  1. rm -rf ~/.cache/mkosi
  2. mkosi build in an empty directory
  3. ...