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

Re: Debconf preloading, standard method?



Sam Vilain wrote:
> Joey Hess <joey@kitenet.net> wrote:
> 
> > cat /var/cache/debconf/config.dat |
> > 	ssh root@host "DEBCONF_FALLBACK=Pipe apt-get install ssh"
> 
> Yes, I considered this; however this means you'll have to copy all of
> standard input into a temporary backend, unless you can guarantee
> dpkg-preconfigure/etc are only going to run once.  Otherwise the
> second time it runs it will get nothing from standard input.

That shouldn't be a problem, if the config script runs when the package
is preconfigured and then writes values back to a drdriver higher on the
stack than the pipe. I'd have to try it to be sure though.

> > I'm unsure whether it would still be useful to add a format driver
> > for a much simplified file format that lets you only set seen flag
> > and default quesiton value. That might help if you want to write a
> > override database file by hand or modify one, but perhaps it's
> > sufficiently easy with the existing 822 format driver.
> 
> debconf-show format for individual installations perhaps?
> 
> debconf-show ssh | ssh host \
>     "DEBCONF_DB_FALLBACK='Pipe{format:debconf-show}' \
>      apt-get install ssh"

That's a very cute idea!

-- 
see shy jo



Reply to: