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:
- Pacman fails if a hookdir doesn't exist (pacman/pacman#298 (closed), fixed in https://github.com/systemd/mkosi/commit/9e31235211d975bae25622d6205a8396d104335e).
- Pacman fails if a cachedir doesn't exist (pacman/pacman#292, see https://bbs.archlinux.org/viewtopic.php?id=311015, fixed in https://github.com/systemd/mkosi/commit/c4c3d793d0f6f0a2f26895de5ed9382396f36bb5).
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:
- rm -rf ~/.cache/mkosi
- mkosi build in an empty directory
- ...