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

Bug#609704: debian-installer: preseed partitioning and configure RAID1 always ask for confirmation



Package: debian-installer
Severity: important
Tags: d-i

Hi

Trying to preseed RAID1 partitioning leads always to have to confirm
question before partitioning. The error is like

---(error)--------------------------------------------------------------
Partition disks
---------------

Before RAID can be configured, the changes have to be written to the storage
devices. These changes cannot be undone.

When RAID is configured, no additional changes to the partitions in the disks
containing physical volumes are allowed. Please convince yourself that you are
satisfied with the current partitioning scheme in these disks.

The partition tables of the following devices are changed:
    SCSI1 (0,0,0) (sda)
    SCSI2 (0,0,0) (sdb)
Write the changes to the storage devices and configure RAID?
    1. Yes  2. No [*]
------------------------------------------------------------------------

The preseed configuration looks as follows. The preseed.cfg is
following the examples given and the same configuration works fine
with the Debian Installer for Lenny.

---(preseed.cfg)--------------------------------------------------------
# preseed.cfg

#----------------------------------------------------------------------#
# Frontend setup
d-i	debconf/frontend	string	text
d-i	debconf/priority	select	critical

#----------------------------------------------------------------------#
# Localization
# Need en_US.UTF-8 in Lenny?
d-i	debian-installer/locale	string	en_US.UTF-8
d-i	console-keymaps-at/keymap	select	us
d-i	countrychooser/country-name	select	Switzerland
d-i	countrychooser/shortlist	select	other

#----------------------------------------------------------------------#
# Network configuration
d-i	netcfg/choose_interface	select
d-i	netcfg/dhcp_failed	note
d-i	netcfg/dhcp_options	select	Configure network manually
d-i	netcfg/bad_ipaddress	error
d-i	netcfg/error	error
d-i	netcfg/gateway_unreachable	error
d-i	netcfg/get_gateway	string
d-i	netcfg/get_ipaddress	string
d-i	netcfg/confirm_static	boolean	true
d-i	netcfg/invalid_hostname	error

# Disable that annoying WEP key dialog
d-i	netcfg/wireless_wep	string

# Try to load non-free firmware when needed without prompting
d-i	hw-detect/load-firmware	boolean	true

#----------------------------------------------------------------------#
# Mirror settings
d-i	mirror/country	string	CH
d-i	mirror/http/hostname	string	ftp.ch.debian.org
d-i	mirror/http/directory	string	/debian
d-i	mirror/suite	string	squeeze

#----------------------------------------------------------------------#
# Clock and time zone setup
d-i	clock-setup/utc	boolean	true
d-i	time/zone	string	Europe/Zurich
d-i	clock-setup/ntp	boolean	true

#----------------------------------------------------------------------#
# Partitioning
# this only makes partman automatically partition without confirmation:
d-i	partman-md/device_remove_md	boolean	true
d-i	partman-md/confirm	boolean	true
d-i	partman-lvm/device_remove_lvm	boolean	true
d-i	partman-lvm/confirm	boolean	true
d-i	partman-partitionining/confirm_write_new_label	boolean	true
d-i	partman/choose_partition	select	finish
d-i	partman/confirm	boolean	true
d-i	partman-lvm/confirm_nooverwrite	boolean	true
# Controlling how partitions are mounted: style: uuid, traditional or
# label (default: uuid)
# d-i	partman/mount_style select traditional

#----------------------------------------------------------------------#
# APT setup
d-i	apt-setup/non-free	boolean	true
d-i	apt-setup/contrib	boolean	true

# local repository: backports.debian.org
d-i	apt-setup/local1/repository	string	http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
d-i	apt-setup/local1/comment	string	backports.org
d-i	apt-setup/local1/source	boolean	true

#----------------------------------------------------------------------#
# Boot Loader Installation
d-i	grub-installer/only_debian	boolean	true
d-i	grub-installer/with_other_os	boolean	true
# Install grub to multiple disks:
d-i	grub-installer/bootdev	string	(hd0,0) (hd1,0)

#----------------------------------------------------------------------#
# Finish up the installation
d-i	finish-install/keep-consoles	boolean	true
d-i	finish-install/reboot_in_progress	note

#----------------------------------------------------------------------#
# Partitioning
d-i partman-auto/method string raid
d-i partman-auto/disk string /dev/sda /dev/sdb

# Next specify the physical partitions that will be used. 
d-i partman-auto/expert_recipe string   \
 multiraid ::                           \
  100 1000 40000 raid                   \
                 $lvmignore{ }          \
                 $primary{ }            \
                 $bootable{ }           \
                 method{ raid }         \
  .                                     \
  24000 24000 24000 raid                \
                 $lvmignore{ }          \
                 method{ raid }         \
  .                                     \
  100  1001 1000000000 raid             \
                 $lvmignore{ }          \
                 method{ raid }         \
  .                                     \
  1% 1002 2% raid                       \
                 $lvmignore{ }          \
                 method{ raid }         \
  .

# specify how the previously defined partitions will be
# used in the RAID setup.
d-i partman-auto-raid/recipe string     \
    1 2 0 ext3 /                        \
          /dev/sda1#/dev/sdb1           \
    .                                   \
    1 2 0 swap -                        \
          /dev/sda5#/dev/sdb5           \
    .                                   \
    1 2 0 ext3 /scratch                 \
          /dev/sda6#/dev/sdb6           \
    .
------------------------------------------------------------------------

Bests
Salvatore

Attachment: signature.asc
Description: Digital signature


Reply to: