[elbe-devel] [PATCH 06/14] elbepack: disable hwdetect hook in Debian

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Feb 28 11:34:57 CET 2024


elbe constructs a repository of all packages installed in the initvm.
This repository is created as part of init-elbe.sh which is executed
as d-i preseed/late_command.

After the late_command the d-i hook 08hw-detect runs which installs the
qemu-guest-agent and intel-microcode.
These packages however are not part of the exported repository which
breaks "elbe check-build cdrom".

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/init/init-elbe.sh.mako | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/elbepack/init/init-elbe.sh.mako b/elbepack/init/init-elbe.sh.mako
index 20992bc44250..d71797092c0a 100644
--- a/elbepack/init/init-elbe.sh.mako
+++ b/elbepack/init/init-elbe.sh.mako
@@ -74,6 +74,9 @@ in-target haveged
   in-target ${elbe_exe} fetch_initvm_pkgs ${buildrepo_opts} /var/cache/elbe/source.xml
 % endif
 
+# 08hw-detect will install packages that would not be tracked by our repository
+rm /usr/lib/finish-install.d/08hw-detect
+
 % if prj.has("finetuning"):
 %   for node in prj.all("./finetuning/"):
 %     if "command" == node.tag:
-- 
2.44.0



More information about the elbe-devel mailing list