我正在尝试生成一个半自动的Ubuntu安装。 但是,我正在运行与preseed文件有关的分区问题。
我想要发生的是:
目前我所拥有的是:
### Partitioning # In addition, you'll need to specify the method to use. # The presently available methods are: # - regular: use the usual partition types for your architecture # - lvm: use LVM to partition the disk # - crypto: use LVM within an encrypted partition di partman-auto/method string regular di partman-auto/init_automatically_partition select Guided - use entire disk # 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-lvm/device_remove_lvm boolean true # The same applies to pre-existing software RAID array: di partman-md/device_remove_md boolean true # And the same goes for the confirmation to write the lvm partitions. di partman-lvm/confirm 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, /usr, /var, and /tmp partitions di partman-auto/choose_recipe select atomic di partman-auto/expert_recipe string \ 1 1 1 free \ $bios_boot{ } \ method{ biosgrub } \ . \ 256 40 256 fat32 \ $primary{ } \ $lvmignore{ } \ method{ efi } \ format{ } \ . \ 4096 4096 4096 linux-swap \ method{ swap } format{ } \ . \ 100 10000 100000000 ext4 \ $primary{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ . # This makes partman automatically partition without confirmation. di partman-partitioning/confirm_write_new_label boolean true di partman/choose_partition select finish # Ask user if existing partitions need to be removed! di partman/confirm boolean false di partman-md/confirm boolean false di partman-lvm/device_remove_lvm boolean false di partman/confirm_nooverwrite boolean false di partman-md/confirm_nooverwrite boolean false di partman-lvm/confirm_nooverwrite boolean false
这个preseed的问题是,即使我已经指定“select引导 – 使用整个磁盘”,它仍然使用第一个磁盘,并只使用该磁盘上剩余的可用空间,而不是使用整个磁盘。
有没有人有线索如何解决这个问题?
谢谢。