Re: Clues on partman hooks?
On Sun, Dec 13, 2009 at 10:02:32AM +0100, Petter Reinholdtsen wrote:
> Hi, Colin. Do you have time to have a look at a partman issue for
> Debian Edu. Our bug is
> <URL:http://bugs.skolelinux.org/show_bug.cgi?id=1402>. The question I
> would like to ask is if there is a partman hook to use that will
> expose that the requested recipe was rejected and run before the
> partition table is touched. I would like to show a dialog to the user
> stating that the disk was too small, instead of allowing partman to
> pick a different recipe and continue the installation.
I wonder if this really ought to be a hook, or if partman-auto should
just behave differently as standard? After all, in general if automation
fails we stop and present a dialog. Adding a hook for this seems like
overengineering; if the expert recipe fails, an error dialog seems
appropriate in general.
If you want to also prevent use of the standard recipes (since it does
still seem natural for partman-auto to fall back to them), you could
simply remove them; is this possible for you?
Colin Watson [firstname.lastname@example.org]