]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Add PathExists= match 1425/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 7 Apr 2023 13:32:56 +0000 (15:32 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 7 Apr 2023 13:32:56 +0000 (15:32 +0200)
commitf03c7f6e1d95727569afcf96ea3ef4d8594cd6e5
treeb85a6bf190babfcaab8169dd36846506da75353d
parentec18b78319eedb4da36bac59816ca7a996e309a2
Add PathExists= match

It's also useful to be able to match against stuff that isn't the
current configuration. Let's add a PathExists= match that is satisfied
when the given path exists.

This will be useful in systemd where we conditionally build a kernel if
mkosi.kernel/ exists in the top level repo directory. With this setting,
we can only install the necessary packages to build the kernel if the
mkosi.kernel/ path actually exists.
mkosi.md
mkosi/config.py