buildsys: clean old sysext dir before installing

So version bumps don't getted mixed into previous builds.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-11-19 13:58:15 +01:00
parent 96e76d7f72
commit 2f25debee6

View File

@ -132,6 +132,8 @@ install-overlay: $(foreach c,$(CRATES), $c-install-overlay)
fakeroot $(MAKE) $*-sysext-do
%-sysext-do:
rm -f extensions/$*.raw
rm -rf build/sysext/$*
rm -rf build/install/$*
$(MAKE) DESTDIR=build/sysext/$* $*-install-overlay
mkdir -p extensions
mkfs.erofs extensions/$*.raw build/sysext/$*