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).
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,
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)