]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Move creation of context.root out of Context() 2967/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 Aug 2024 11:42:20 +0000 (13:42 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 Aug 2024 12:52:17 +0000 (14:52 +0200)
commit5871c450cca31efaf587b0ec227719d84ab1ce5c
tree09be48e3027706ba3def44baceb31947d8d49ddc
parent0917da6758c0fedc19dd520b88a60241323ae06c
Move creation of context.root out of Context()

On btrfs systems, we're unnecessarily creating a subvolume only to
remove it again immediately afterwards if we're building from a cached
image. So let's move the creation of root outside of Context() so
we can only create it as a subvolume after we've potentially checked
caches first.
mkosi/__init__.py
mkosi/context.py