sample on how to do debconf integration
Brian Sutherland
jinty at web.de
Thu Nov 11 18:44:51 CET 2004
On Thu, Nov 11, 2004 at 04:14:52PM +0100, Holger Schurig wrote:
> ---------------------------------------------------------
> #!/bin/bash
> echo "Task mirror"
> for cl in $classes; do
> echo " trying debconf/$cl"
> if [ -f "/fai/debconf/$cl" ]; then
> $ROOTCMD debconf-set-selections <"/fai/debconf/$cl" && echo " loaded debconf/$cl"
> fi
> done
>
> unset cl
Looks good and simple. A few suggestions:
* Perhaps check the format of the file first with
debconf-get-selections -c
* Provide a way for the user to change debconf settings on the fly.
e.g. settings based on hostname.
> because task 'mirror' runs before task 'instsoft', the debconf should already contain
> the needed info for the postinst script. However, I'm not an expert on Debian yet,
Yes, the pre-seeding should happen before the packages are installed.
Once the package is installed you start getting people saying "debconf
is not a registry".
Although mileage varies per package.
Unfortunately with this solution none of the packages already installed
in the target are pre-seedable, i.e. packages in the tarball. But you can't
have it all.
> so I'm not sure if this is the right approach. If it is so simple, then why isn't it
> in FAI already? :-)
:)
--
Brian Sutherland
"And I bought such a beautiful skirt!" - Another one.
More information about the linux-fai
mailing list