interactive postinst scripts
Andrew Pollock
andrew-fai at andrew.net.au
Sun Aug 11 02:10:05 CEST 2002
On 10.08.2002 at 14:24:50, Paul Nijjar <pnijjar at utm.utoronto.ca> wrote:
>
> > > I already diverted /usr/sbin/sendmailconfig and
> > > /usr/share/sendmail/update_notices, but the postinst script still
> > > wants someone to press a key. The postinst script does something
> > > useful, so you cannot simply disable it.
>
> How do you go about disabling the postinst script? I am now
> running into a similar problem with wvdial -- the postinst script asks
> some questions, and the correct response to skip configuration is 'N'.
> I can safely ignore the postinst script, but I don't know how to go about
> doing this. I tried to use mkdivert on the wvdial.postinst script, but it
> does not seem to work (which in retrospect should not be surprising).
>
> Yes, I did file a bug against the package. But until I get a
> response/bugfix I am stuck (or I take out wvdial from our installer).
>
> One thing the mail archives suggested was to install the package
> manually. In a hook (I have tried instsoft, updatebase, configure and
> finish) I try the following code:
> ---
> $ROOTCMD yes 'n' | apt-get --fix-missing install wvdial
I had a lot problems trying to pipe stuff when wanting to do a chroot as well.
Try:
yes 'n' | $ROOTCMD apt-get --fix-missing install wvdial
assuming that yes is part of the FAI nfsroot.
Andrew
More information about the linux-fai
mailing list