Isa*_*aac 8 debian lvm preseed
我尝试使用专家配方为 debian 6.0.5 netinstall 配置 lvm。我不想被问到任何问题,但它一直问我“将更改写入磁盘并配置 LVM?”
这是我的 preseed.cfg 的一部分:
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto-lvm/new_vg_name string vg00
d-i partman-auto/expert_recipe string \
boot-root :: \
128 50 128 ext2 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext2 } \
mountpoint{ /boot } \
. \
10000 50 10000 ext4 \
$defaultignore{ } \
$lvmok{ } \
lv_name{ root } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } \
. \
2048 90 2048 linux-swap \
method{ swap } format{ } \
. \
10000 50 10000 ext4 \
$defaultignore{ } \
$lvmok{ } \
lv_name{ var } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ /var } \
.
d-i partman-lvm/confirm boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman/choose_partition select finish
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/confirm_write_changes_to_disks_and_configure_lvm boolean true
d-i partman/choose_partition \
select Finish partitioning and write changes to disk
Run Code Online (Sandbox Code Playgroud)
这看起来像是一个已知问题,我在想像这样的帖子,但建议的解决方案似乎对我不起作用。任何提示?
S19*_*19N 12
在http://www.debian.org/releases/stable/i386/apbs04.html.en它说
d-i partman/choose_partition select finish
Run Code Online (Sandbox Code Playgroud)
代替
d-i partman/choose_partition \
select Finish partitioning and write changes to disk
Run Code Online (Sandbox Code Playgroud)
并且还补充道:
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
Run Code Online (Sandbox Code Playgroud)
其他提示:
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-md/confirm_nooverwrite boolean true
加上更多我的 2 美分使用 Ubuntu 12.04 LTS 变体。似乎还需要添加
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
Run Code Online (Sandbox Code Playgroud)
如果没有最后两行,安装在一些 VirtualBox VM 上可以无人看管,而在其他虚拟机上则不然!虚拟机的配置完全相同——你猜对了!– 在同一台机器上运行。新的和现有分区的都被尝试过。当然,在尝试重新运行“已成功测试”的 ISO 之前,我已经尝试了所有其他方法。
多亏了 S19N,这就是我如何让我的自动分区工作的:
### Partitioning
# Specify a disk to partition. The device name
# can be given in either devfs or traditional non-devfs format.
d-i partman-auto/disk string /dev/sda
# 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
# 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
# http://cptyesterday.wordpress.com/2012/06/17/notes-on-using-expert_recipe-in-debianubuntu-preseed-files/
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto-lvm/new_vg_name string vg00
# You can put an entire recipe into the preconfiguration file in one
# (logical) line.
# This creates
# a 128MB ext2 formatted partitin mounted at /boot
# the rest will be used as a physical volume. Furthermore,
# a 10GB ext4 formated LV mounted at /, and
# a 10GB ext4 formated LV mounted at /var
# will be created
d-i partman-auto/expert_recipe string \
boot-root :: \
128 50 128 ext2 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext2 } \
mountpoint{ /boot } \
. \
10000 50 10000 ext4 \
$defaultignore{ } \
$lvmok{ } \
lv_name{ root } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } \
. \
2048 90 2048 linux-swap \
method{ swap } format{ } \
. \
10000 50 10000 ext4 \
$defaultignore{ } \
$lvmok{ } \
lv_name{ var } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ /var } \
.
# Write the changes to disks and configure LVM?
d-i partman/confirm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
# http://ubuntuforums.org/showthread.php?p=9626883
d-i partman-lvm/device_remove_lvm boolean true
#d-i partman-lvm/confirm boolean true
# This makes partman automatically partition without confirmation.
d-i partman/choose_partition \
select Finish partitioning and write changes to disk
d-i partman/confirm_nooverwrite boolean true
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
14711 次 |
最近记录: |