web-dev-qa-db-ja.com

preseed / late_commandの実行中に入力を求める方法

Preseedサーバーのインストールファイルは、preseed/late_commandで呼び出されるbashスクリプトを使用して、いくつかの追加タスクを実行します。 LDAPを適切にインストールするために、このプロセス中にパスワードを要求します。 debconfスタイルでこれを行うにはどうすればよいですか?

4
Pete Ashdown

buntu WikiカスタムインストールCD から

通常、late_commandを介してシードファイルから実行されるスクリプトは、ユーザーと対話できません。対話する必要がある場合、一般的に3つのオプションがあります。

1. Create a custom UDEB that interacts with debconf, and include it with the CD.
2. Create a 'firstrun' script that executes the first time the system boots, and disables itself on completion.
3. Access debconf directly within your script. 

個人的には、「最初の実行」メソッドを使用し、インストール後にスクリプトを実行します。他の2つの方法は使用していません。

3
Panther