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

[debian-users:57488] preseed.cfgの呼び出し方



お世話になります。

 debian7.8でpreseed.cfgを使ったインストールを試みています。
 環境はVMware上のamd64(debian 7 64ビット)です。

 1)インストール・メニュー画面で”Advanced options”経由で実施
  ・入力欄に”floppy:///preseed.cfg”と入力する
  ・ローカライズを設定しインストールが進行して成功で終了する

 2)同画面でTABを押下しパラメータを追加して実施
  ・パラメータに”preseed/file=/floppy/preseed.cfg”と入力する
  ・ローカライズを設定しインストールが進行して事前ファイルの処理に失敗し中断する。
   ”インストーラはfloppy:////prescript.shからの…”と出ていた

 1も2も同じ環境で経由画面が異なるだけです。

 a)そもそも同じファイルで実施することができない仕様なのでしょうか?

 b)また1の場合、画面の例のとおりに入力するとファルが認識されないのは何が理由でしょうか?
  (画面では”floppy://preseed.cfg”と/が2つで記述されている)

以上、よろしくお願いします。

以下、1で成功したファイルです。

// prescript.sh ///////////////////////////////////////////////////////////////
#!/bin/sh
killall.sh; netcfg

// preseed.cfg ////////////////////////////////////////////////////////////////
# *****************************************************************************
# Contents of the preconfiguration file (for wheezy)
# *****************************************************************************
# == Localization =============================================================
  d-i debian-installer/locale string ja_JP
  d-i debian-installer/language string ja
  d-i debian-installer/country string JP
  d-i debian-installer/locale string ja_JP.UTF-8
# d-i localechooser/supported-locales multiselect ja_JP.UTF-8, en_US.UTF-8
# -- Keyboard selection. ------------------------------------------------------
  d-i keymap select jp
# d-i keyboard-configuration/toggle select No toggling
# == Network configuration ====================================================
# d-i netcfg/enable boolean false
  d-i netcfg/choose_interface select auto
# d-i netcfg/choose_interface select eth1
# d-i netcfg/link_detection_timeout string 10
# d-i netcfg/dhcp_timeout string 60
# d-i netcfg/dhcpv6_timeout string 60
  d-i netcfg/use_autoconfig boolean false
  d-i netcfg/disable_autoconfig boolean true
  d-i netcfg/disable_dhcp boolean true
# d-i netcfg/dhcp_failed note
# d-i netcfg/dhcp_options select Configure network manually
# -- IPv4 ---------------------------------------------------------------------
  d-i netcfg/get_ipaddress string 192.168.1.1
  d-i netcfg/get_netmask string 255.255.255.0
  d-i netcfg/get_gateway string 192.168.1.254
  d-i netcfg/get_nameservers string 192.168.1.1 192.168.1.254 8.8.8.8 8.8.4.4
  d-i netcfg/confirm_static boolean true
# -- IPv6 ---------------------------------------------------------------------
# d-i netcfg/get_ipaddress string fc00::2
# d-i netcfg/get_netmask string ffff:ffff:ffff:ffff::
# d-i netcfg/get_gateway string fc00::1
# d-i netcfg/get_nameservers string fc00::1
# d-i netcfg/confirm_static boolean true
# -- Host name and Domain name ------------------------------------------------
  d-i netcfg/get_hostname string sv-server
  d-i netcfg/get_domain string workgroup
# d-i netcfg/hostname string somehost
# -- Disable that annoying WEP key dialog. ------------------------------------
  d-i netcfg/wireless_wep string
# -----------------------------------------------------------------------------
# d-i netcfg/dhcp_hostname string radish
# d-i hw-detect/load_firmware boolean true
# -----------------------------------------------------------------------------
  d-i preseed/run string /prescript.sh
# == Network console ==========================================================
# d-i anna/choose_modules string network-console
# d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
# d-i network-console/password password install
# d-i network-console/password-again password install
# == Mirror settings ==========================================================
  d-i mirror/protocol string http
  d-i mirror/country string JP
  d-i mirror/http/hostname string ftp.jp.debian.org
  d-i mirror/http/directory string /debian/
  d-i mirror/http/proxy string
  d-i mirror/suite string stable
  d-i mirror/udeb/suite string stable
# -- Suite to install. --------------------------------------------------------
# d-i mirror/suite string testing
# d-i mirror/udeb/suite string testing
# == Account setup ============================================================
  d-i passwd/root-login boolean true
  d-i passwd/make-user boolean true
# -- Root password, either in clear text --------------------------------------
  d-i passwd/root-password password root
  d-i passwd/root-password-again password root
# d-i passwd/root-password-crypted password [MD5 hash]
# -- To create a normal user account. -----------------------------------------
  d-i passwd/user-fullname string Master
  d-i passwd/username string master
# -- Normal user's password, either in clear text -----------------------------
  d-i passwd/user-password password master
  d-i passwd/user-password-again password master
# d-i passwd/user-password-crypted password [MD5 hash]
# -- Create the first user with the specified UID instead of the default. -----
# d-i passwd/user-uid string 1010
# d-i passwd/user-default-groups string audio cdrom video
# == Clock and time zone setup ================================================
# Controls whether or not the hardware clock is set to UTC.
  d-i clock-setup/utc boolean true
  d-i time/zone string Asia/Tokyo
# -- Controls whether to use NTP to set the clock during the install ----------
  d-i clock-setup/ntp boolean true
# -- NTP server to use. The default is almost always fine here. ---------------
  d-i clock-setup/ntp-server string ntp.nict.jp
# == Partitioning =============================================================
# d-i partman-auto/init_automatically_partition select biggest_free
  d-i partman-auto/disk string /dev/sda
# d-i partman-auto/disk string /dev/sda /dev/sdb
# d-i partman-auto/disk string /dev/sda /dev/sdb /dev/sdc /dev/sdd
# -----------------------------------------------------------------------------
  d-i partman-auto/method string regular
# d-i partman-auto/method string lvm
# d-i partman-auto/method string crypto
# d-i partman-auto/method string raid
# -----------------------------------------------------------------------------
  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-auto/choose_recipe select home
# d-i partman-auto/choose_recipe select multi
# -----------------------------------------------------------------------------
# d-i partman-auto/expert_recipe_file string /hd-media/recipe
# -- Partitioning using RAID --------------------------------------------------
#   /boot  :  250MB : ext2 : /dev/md0 : raid1 : /dev/sd[a-b]1
#   /      : 5120MB : ext4 : /dev/md1 : raid1 : /dev/sd[a-b]2
#   swap   : 1024MB : swap : /dev/md2 : raid1 : /dev/sd[a-b]5
#   /share :  ~ end : ext4 : /dev/md3 : raid1 : /dev/sd[a-b]6
# d-i partman-auto/expert_recipe string multiraid :: \
#     256 1  256 raid $primary{ } method{ raid } format{ } . \
#    5120 2 5120 raid $primary{ } method{ raid } format{ } . \
#    1024 3 300% raid $logical{ } method{ raid } format{ } . \
#   10240 4   -1 raid $logical{ } method{ raid } format{ } . 
# d-i partman-auto-raid/recipe string \
#   1 2 0 ext2 /boot  /dev/sda1#/dev/sdb1 . \
#   1 2 0 ext4 /      /dev/sda2#/dev/sdb2 . \
#   1 2 0 swap -      /dev/sda5#/dev/sdb5 . \
#   1 2 0 ext4 /share /dev/sda6#/dev/sdb6 . 
# d-i partman-md/confirm boolean true
# -- This makes partman automatically partition without confirmation. ---------
  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
# -- Controlling how partitions are mounted -----------------------------------
# d-i partman/mount_style select uuid
# == Base system installation =================================================
# d-i base-installer/install-recommends boolean false
# d-i base-installer/kernel/image string linux-image-3.2.0-4-amd64
# == Apt setup ================================================================
# d-i apt-setup/non-free boolean true
# d-i apt-setup/contrib boolean true
  d-i apt-setup/use_mirror boolean true
  d-i apt-setup/services-select multiselect security, updates
  d-i apt-setup/security_host string security.debian.org
# -- Additional repositories, local[0-9] available ----------------------------
# d-i apt-setup/local0/repository string http://local.server/debian stable main
# d-i apt-setup/local0/comment string local server
# d-i apt-setup/local0/source boolean true
# d-i apt-setup/local0/key string http://local.server/key
# -----------------------------------------------------------------------------
# d-i debian-installer/allow_unauthenticated boolean true
# == Package selection ========================================================
# tasksel tasksel/first multiselect standard, web-server
# tasksel tasksel/desktop multiselect kde, xfce
  tasksel tasksel/first multiselect standard
  d-i pkgsel/include string openssh-server
# -- Individual additional packages to install --------------------------------
  d-i pkgsel/upgrade select none
# -----------------------------------------------------------------------------
  popularity-contest popularity-contest/participate boolean false
# =============================================================================
# d-i grub-installer/skip boolean true
# d-i lilo-installer/skip boolean true
  d-i grub-installer/only_debian boolean true
# d-i grub-installer/with_other_os boolean true
# d-i grub-installer/only_debian boolean false
# d-i grub-installer/with_other_os boolean false
# d-i grub-installer/bootdev  string (hd0,0)
# d-i grub-installer/bootdev  string (hd0,0) (hd1,0) (hd2,0)
  d-i grub-installer/bootdev  string /dev/sda
# d-i grub-installer/bootdev  string /dev/md0
# d-i grub-installer/password password r00tme
# d-i grub-installer/password-again password r00tme
# d-i grub-installer/password-crypted password [MD5 hash]
# d-i debian-installer/add-kernel-opts string nousb
# == Finishing up the installation ============================================
# d-i finish-install/keep-consoles boolean true
  d-i finish-install/reboot_in_progress note
  d-i cdrom-detect/eject boolean true
  d-i debian-installer/exit/halt boolean false
  d-i debian-installer/exit/poweroff boolean false
# == Preseeding other packages ================================================
#   debconf-get-selections --installer > file
#   debconf-get-selections >> file
# == Advanced options =========================================================
# d-i preseed/early_command string anna-install some-udeb
# d-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
# d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
# == End Of File ==============================================================