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

Re: Interaction with user in preseed's early/late command



On Thursday 25 September 2008, Gustavo Miranda wrote:
> I'm trying to customize an ubuntu 8.04 installation using an alternate
                             ^^^^^^^^^^^
Next time please ask your question on a Ubuntu mailing list.

> CD. I created an preseed file and I use early and late commands to
> customize the installation. Commands to install and remove packages
> work fine. I'm having trouble in executing scripts that interacts with
> the user. For example, if I try to run the following script, it doesn't
> work the way I want, because I can't activate the virtual terminal(vt)
> #3 via script. The 'echos' are redirected to vt #3 but not the 'read'
> command, so the installations stops because it can't pass the read
> command.

You CANNOT use stdin/stderr to interact with users during the 
installation. You should always use debconf questions.

You can create a custom udeb to ask your questions, but it is also 
possible to create templates "on the fly". Examples of the last can be 
found here: http://hands.com/d-i/.

Cheers,
FJP


Reply to: