LoginSignup
5
5

More than 5 years have passed since last update.

Debian Preseed メモ

Last updated at Posted at 2014-03-03

ブートパラメータ

install noapic auto=true priority=critical url=http://%IP%:%PORT%/preseed.cfg
  • noapic: おまじない
  • auto=true: キーボード設定なども含めPreseedする
  • priority=critical: キーボード設定等、インストールに必須でない選択肢を聞かない
  • url=...: Preseedの場所

Preseed

veewee-debian-wheezy-preseed.cfg
## ローカリゼーション
# keyboard-configuration/xkb-keymapはkeymapに短縮できるとあるが、
# カーネルパラメータでしか短縮できない (BUG?)
d-i debian-installer/locale string ja_JP.UTF-8
d-i keyboard-configuration/xkb-keymap select jp

## ネットワーク関連
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/wireless_wep string
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.jp.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string


## ユーザ
# vagrant用の設定
# root-login=falseならば、一般ユーザは自動的にsudo可能になる
d-i passwd/root-login boolean false
d-i passwd/user-fullname string vagrant
d-i passwd/username string vagrant
d-i passwd/user-password password vagrant
d-i passwd/user-password-again password vagrant


## タイムゾーン
d-i clock-setup/utc boolean true
d-i time/zone string Asia/Tokyo
d-i clock-setup/ntp boolean true


## パーティション
# MBRでセットアップする
d-i partman-auto/method string regular

# 何があっても既存のパーティションを強制的に削除
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true

# 単一パーティション
d-i partman-auto/choose_recipe select atomic

# 何があっても新しいパーティションを強制的に作成する
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
tasksel tasksel/first multiselect


## パッケージ
# 起動時に時刻があっていて、sshでアクセスできるようにする
d-i pkgsel/include string openssh-server ntp


## 終了処理
# 再起動するか確認しない
d-i finish-install/reboot_in_progress note
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5