我需要一些帮助与partman自动定制食谱在preseed ….这是做意想不到的事情,文档不是很清楚。
这是在我的preseed文件中:
di partman-auto/expert_recipe string \ boot-root-var :: \ 1024 100 1024 ext4 \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /boot } \ . \ 2048 50 4096 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ . \ 4096 25 100000 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /var } \ . \ 256 75 100% linux-swap \ method{ swap } format{ } \ .
给定一个80GB的驱动器。 我结束了这些分区:
/ 2GB /boot 1GB /var 4GB swap 72GB
什么地方出了错? 我想要的是:
/ 2GB /boot 1GB /var 72GB swap 4GB
试试这个配方:
di partman-auto/expert_recipe string \ boot-root-var :: \ 1024 1024 1024 ext3 \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /boot } \ . \ 2048 2048 4096 ext3 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ . \ 4096 4096 -1 ext3 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /var } \ . \ 256 4096 4096 linux-swap \ method{ swap } format{ } \ .
您可以在devel / partman-auto-recipe.txt中find这些食谱的文档,但是老实说:与Kickstart文件或FAI的setup-storage相比,这些预先分类的文件是一个真正的痛苦。
我有一个非常类似的问题,至今还没有能够解决它。 我想要的只是我的交换分区最终以我定义的大小。
di partman-auto / expert_recipe string \ boot-root :: \ 200 3000 300 ext2 \ $ primary {} $ bootable {} \ method {format}格式{} \ use_filesystem {}文件系统{ext2} \ mountpoint {/ boot} \ 。 \ -l 100 -1 ext3 \ $ lvmok {} \ method {format}格式{} \ use_filesystem {}文件系统{ext3} \ mountpoint {/} \。 \ 2048 200 2048 linux-swap \ $ lvmok {} \ method {swap}格式{} \。
这应该会导致2GB的交换,但最终将达到近6GB。 在我使用这个当前的配方(之前做了一些调整)之前,我曾经有一个227GB的交换分区! 我的食谱应该创build交换第二次启动,大小为2048MB(到最近的圆柱体)。