]> git.ipfire.org Git - thirdparty/mkosi.git/commit
mkosi: rework how we reenable kernel-install snippets 230/head
authorLennart Poettering <lennart@poettering.net>
Tue, 6 Feb 2018 19:01:09 +0000 (20:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 6 Feb 2018 19:01:09 +0000 (20:01 +0100)
commit49c93c816beb3bc55ced57390c9e969a67629703
tree39a2957105398c0c1add86858f3d2a06688723e9
parent8bf5b89a74429c64c1980ae412d6fa5e2bcdbc3e
mkosi: rework how we reenable kernel-install snippets

The old code doesn't really work: we can't store the list of snippets we
masked in a global variable, since we run the whole build process
multiple times and data from the first run might confuse follow-up runs
and really should not.

This reworks the logic so that we keep track precisely which snippets
are masked and return this from disable_kernel_install(). We then pass
that back into reenable_kernel_install() to undo the effect later on.
This way the information never leaks into later runs.
mkosi