Hello Victor,

On 16/11/2025 14:12, Victor Nivet wrote:
I want to to choose which hooks to execute at chroot stage with a env var or a parameter of lb_config or lb_build.

The easiest way to achieve this, would be to remove the hooks you don't want to execute after running 'lb config', before running 'lb build'. All logic (environment variable or otherwise) is then fully under your control.

I've seen the parameter « –lb_chroot_hooks » which can activate hooks at chroot stage.

That is not a parameter, but the name of a script, which executes all hooks in config/hooks/normal (and config/hooks/live). Please add hooks only in config/hooks/normal, see the numbering scheme [1].

With kind regards,
Roland Clobus

[1] https://salsa.debian.org/live-team/live-build/-/blob/master/share/hooks/README?ref_type=heads

Reply via email to