Am Montag, den 21.10.2019, 13:59 +0200 schrieb Johannes Schauer:
> Hi,
> 
> Quoting Benjamin Drung (2019-10-21 09:41:37)
> > The hooks are not documented in the man page / --help output
> > despite
> > having them documented in the end of the mmdebstrap file:
> > 
> > $ man mmdebstrap | grep hook
> > $
> 
> yes, that is a feature not a bug. :)
> 
> I was never quite sure about how I want to implement hooks with
> mmdebstrap as
> in what interface would be useful and easy enough to use. So I
> implemented the
> functionality but by not documenting it, it is still experimental and
> might
> change in future releases.
> 
> If you are successfully using hooks today, then I'd be happy to hear
> whether
> the way the work now is useful for you or not.

Yes, I am successfully using hooks now. I migrated our custom in-house
build script from using debootstrap to use mmdebstrap using custom
hooks. So the hooks are useful and work. They are easy enough to use. I
thought about alternatives, but found nothing better.

One hook is missing: A clean hook that is run after the cleanup, which
would be run at last step of the setup function.

I have only one issue related to the hooks: There is no easy, safe, and
reliable way to copy stuff out of the image to an existing directory.
Use case: copy the kernel+initrd out of the image for PXE booting.

-- 
Benjamin Drung

Debian & Ubuntu Developer
Platform Engineering Compute (Enterprise Cloud)

1&1 IONOS SE | Greifswalder Str. 207 | 10405 Berlin | Germany
E-mail: [email protected] | Web: www.ionos.de

Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498
Vorstand: Dr. Christian Böing, Hüseyin Dogan, Hans-Henning Kettler,
Matthias Steinberg, Achim Weiß
Aufsichtsratsvorsitzender: Markus Kadelke
Member of United Internet

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to