On Sun, Jan 24, 2010 at 22:27:14 +0700, Theppitak Karoonboonyanan wrote:

> Remotely jamming Mönchengladbach BSP :)
> 
> This is caused by debconf question in preinst:
> 
> ---8<---
>   . /usr/share/debconf/confmodule
>   db_get runit-run/install
>   if test "$RET" = false; then
>     db_fset runit-run/install seen false
>     exit 1
>   fi
> ---8<---
> 
> If I try to install it in normal system, I'll be prompted to confirm if I
> really want to replace sysvinit, with default answer 'no' ('false'). But if
> I try it in a limited environment like piuparts or pbuilder chroot, debconf
> will always skip the question and continue with the default. So it exits
> with status 1.
> 
> I think it's reasonable to fail here. 'False' is a safe default. And it works
> properly in normal systems.
> 
A workaround would be to wrap the exit 1 in
if [ "$DEBIAN_FRONTEND" != noninteractive ]
and let users of the noninteractive frontend keep the pieces.  Shouldn't
break normal systems since those would use a real frontend, and should
make piuparts happy.

Cheers,
Julien



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to