我的环境中的机器有 1 个或 2 个磁盘/阵列。
我希望预置使用所有磁盘空间,无论盒子有多少。
问题是:我当前的分区方案一看到多个磁盘就会挂起。
这是我的分区预置的样子:
# Partitioning
d-i partman-auto/method string lvm
# 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-lvm/device_remove_lvm boolean true
# The same applies to pre-existing software RAID array:
d-i partman-md/device_remove_md 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/confirm_nooverwrite boolean true
# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home: separate /home partition
# - multi: separate /home, /var, and /tmp partitions
d-i partman-auto/choose_recipe select atomic
# This makes partman automatically partition without confirmation, provided
# that you told it what to do using one of the methods above.
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
# Choose automatic partitioning recipes where automatic puts
# All configuration on the same partition
d-i partman-auto/choose_recipe select automic
# Complete partitioning without further 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
我的问题:无论检测到多少个磁盘,如何使预置使用所有可用磁盘?
或者:如何在第一个分区上进行预置安装,然后在辅助磁盘上创建一个空白分区?
答案1
未经测试,出现这一行 -
d-i partman-auto/choose_recipe select automic
确实应该是——
d-i partman-auto/choose_recipe select atomic
(注意“原子”,而不是“自动”)尝试一下。