[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debootstrap and interactive postinst scripts

On Tue, Jun 05, 2001 at 03:03:30PM +0100, Richard Hirst wrote:
> I have a problem with this; my gcc-3.0-base.deb has a postinst
> with a "read foo" in it, and a first line of "#!/bin/sh -e".
> That -e causes the script to exit with code 1 when the read
> fails (which it does, when directed from /dev/null).  That
> causes the postinst to fail, and debootstrap never manages
> to get all packages configured.

Check for DEBIAN_FRONTEND=Noninteractive, and don't prompt if it's set
like that.


Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.

``_Any_ increase in interface difficulty, in exchange for a benefit you
  do not understand, cannot perceive, or don't care about, is too much.''
                      -- John S. Novak, III (The Humblest Man on the Net)

Attachment: pgpe43ZIE8NzW.pgp
Description: PGP signature

Reply to: