#565746 pbuilder: please add hooks to be executed just before saving after login-or-execute

#565746#5
Date:
2010-01-18 14:49:49 UTC
From:
To:
Currently, scripts that modify the image in the "F" series of hooks have to be
idempotent, since they are not reversed when --save-after-{login,execute} is used.

Sometimes, it would be useful to instead split the script in two, one removing
what was done in the initialisation. This patch introduces the "H" series to undo
what was done at the "F" stage (or something else).

#565746#10
Date:
2010-01-21 13:38:09 UTC
From:
To:
        Hi

 What if instead we would change these F scripts to test whether
 --save-after-{login,execute} is set?

 I personally would prefer maintaining a single script rather than two,
 but I'm not sure whether you can really disable the F scripts in
 question in these cases or not.

   Thanks,

#565746#15
Date:
2015-10-13 20:12:55 UTC
From:
To:
control: tags -1 - patch

I see the point to need this.
But I think that would be a too restricted scope.  IMHO.

It needs a bit reworking on how the last seconds of chroots are handled
(discarding the chroot/saving the chroot+(re)packing) before doing it,
but I'd rather add a hook meant to be run always when creating the
chroot.
After this would easy editing the chroot, because that would be as easy
as writing the script to do the changes, rather than creating costum
scripts and getting them executed inside somehow (as we do in
jenkins.d.n)