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

Problem preseeding disk selection in hd-media unattended installation.



Hi:

I've a problem with a unattended hd-media installation preseeding.
The preseed that I use works fine for net or CD installations (always is used in single-disk systems),
and it takes the existing disk to part.

Since in hd-media installation exist other disk, the installation asks for the disk to part.
Using the name of the disk (sda for example) is not a good solution since those names
 are dependant of  driver loading order.

¿Is any way to select the larger disk (or other similar solution), or i must "asume" the driver loading order?

Thanks in advance:
Jon

PD; I've readed the manual, and the partman-auto-recipe  and I couldn't find anything
in this way.

This is the partman part of the preseed:
******************************************************************************************
d-i partman-auto/init_automatically_partition \
    select Guided - use entire disk
# For example, to use the first SCSI/SATA hard disk:
# d-i partman-auto/disk string  /dev/hda
# d-i partman-auto/disk string  /dev/hdb
# d-i partman-auto/disk string  /dev/sda
# d-i partman-auto/disk string  /deb/sdb


# Note: If you want to use whatever disk is available, no matter
# what its device name, comment the line above out. This will only work if
# the system only has one disk.
# In addition, you'll need to specify the method to use.
# The presently available methods are: "regular", "lvm" and "crypto"
#d-i partman-auto/method string lvm
d-i partman-auto/method string regular

# If one of the disks that are going to be automatically partitioned
# contains an old LVM configuration, the user will normally receive a
# warning. This can be preseeded away...
d-i partman-auto/purge_lvm_from_device boolean true
# And the same goes for the confirmation to write the lvm partitions.
d-i partman-lvm/confirm boolean true

d-i partman-lvm/device_remove_lvm boolean true
# And the same goes for the confirmation to write the lvm partitions.
d-i partman-lvm/confirm boolean true


d-i partman-auto/expert_recipe string [RESTOFRECIPE]

d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition \
       select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
******************************************************************************************

Reply to: