我尝试使用configurationlvm的debian 6.0.5 netinstall的专家配方。 我不想问任何问题,但是一直问我:“将更改写入磁盘并configurationLVM?
这是我的preseed.cfg的一部分:
di partman-auto/disk string /dev/sda di partman-auto/method string lvm di partman-auto/purge_lvm_from_device boolean true di partman-auto/choose_recipe select boot-root di partman-auto-lvm/new_vg_name string vg00 di 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 } \ . di partman-lvm/confirm boolean true di partman-lvm/device_remove_lvm boolean true di partman-md/confirm_nooverwrite boolean true di partman/choose_partition select finish di partman/confirm_nooverwrite boolean true di partman/confirm boolean true di partman/confirm_write_new_label boolean true di partman/confirm_write_changes_to_disks_and_configure_lvm boolean true di partman/choose_partition \ select Finish partitioning and write changes to disk
这看起来像一个知道的问题,我正在考虑这样的post ,但build议的解决scheme似乎不适合我。 任何提示?
在http://www.debian.org/releases/stable/i386/apbs04.html.en它说
di partman/choose_partition select finish
代替
di partman/choose_partition \ select Finish partitioning and write changes to disk
还补充说:
di partman-md/confirm boolean true di partman-partitioning/confirm_write_new_label boolean true
其他提示:
di partman-lvm/confirm_nooverwrite boolean true解决 di partman-md/confirm_nooverwrite boolean true加上更多 这是我得到我的自动分区工作,感谢S19N:
### Partitioning # Specify a disk to partition. The device name # can be given in either devfs or traditional non-devfs format. di 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" di 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... di partman-auto/purge_lvm_from_device boolean true # http://cptyesterday.wordpress.com/2012/06/17/notes-on-using-expert_recipe-in-debianubuntu-preseed-files/ di partman-auto/choose_recipe select boot-root di 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 di 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? di partman/confirm boolean true di partman-lvm/confirm boolean true di partman-lvm/confirm_nooverwrite boolean true # http://ubuntuforums.org/showthread.php?p=9626883 di partman-lvm/device_remove_lvm boolean true #di partman-lvm/confirm boolean true # This makes partman automatically partition without confirmation. di partman/choose_partition \ select Finish partitioning and write changes to disk di partman/confirm_nooverwrite boolean true
我的2美分与Ubuntu 12.04 LTS的变化。 似乎也有必要加上
di partman/confirm_nooverwrite boolean true di partman-md/confirm_nooverwrite boolean true di partman-lvm/confirm_nooverwrite boolean true
没有最后两行,安装在一些VirtualBox虚拟机上无人值守,而在其他虚拟机上没有。 虚拟机的configuration是相同的 – 你猜对了! – 在同一台机器上运行。 新的和现有的分区的尝试。 当然,在尝试重新运行“已成功testing”的ISO之前,我已经尝试过所有其他的东西了。