デスクトップとラップトップのPXEプロビジョニングガイドラインを変更しますか?

デスクトップとラップトップのPXEプロビジョニングガイドラインを変更しますか?

私はラップトップやデスクトップにデプロイするためにDebian 8 PXE辞書ビルドビルドを作成しています。ホストがラップトップであるかデスクトップであるかに応じて、特定のコマンドを実行したいと思います。

if laptop then command A
if desktop then command B

可能ですか?特に、ホストの種類に応じて、さまざまなディスクパーティション化スキームを設定したいと思います。

ベストアンサー1

サンプルファイルを見てくださいここ

具体的には、下部の「インストール中にカスタムコマンドを実行する」という説明を参照してください。インストーラ内で必要なシェルコマンドを実行できるので、必要な操作を実行できます。

このページを引用した例:

# This first command is run as early as possible, just after
# preseeding is read.
#d-i preseed/early_command string anna-install some-udeb
# This command is run immediately before the partitioner starts. It may be
# useful to apply dynamic partitioner preseeding that depends on the state
# of the disks (which may not be visible when preseed/early_command runs).
#d-i partman/early_command \
#       string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"

おすすめ記事