我试图在ubuntu 14.04上自定义preseed。存储安装所需的所有参数的位置。在第一次操作系统启动时,导出值和变量,并且无需任何手动干预即可完成配置。 在此硬件配置过程中,我选择了基于LVM的架构。
当我尝试使用固定磁盘空间时,它适用于以下配置
d-i partman-auto/expert_recipe string \
boot-root :: \
250 1000 300 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
# swap with at least 5GB, maximum size of memory
5120 500 100% linux-swap \
$lvmok{ } \
method{ swap } format{ } \
. \
# /var/db/application with at least 40GB, maximum 40GB, and ext4
40960 1000 40960 ext4 \
$lvmok{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /var/db/application } \
. \
# / with at least 40GB, maximum 40GB, and ext4
40960 1000 40960 ext4 \
$lvmok{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
# /var/log/application with at least 20GB, maximum rest of space, and ext4
20480 1000 1000000 ext4 \
$lvmok{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /var/log/application } \
. \
我的查询是当我尝试根据百分比分配磁盘空间时,因为硬盘分配每次都不同。它对我不起作用。 partman配置如下
d-i partman-auto/expert_recipe string \
boot-root :: \
250 1000 300 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
# swap with at least 5GB, maximum size of memory
5120 500 100% linux-swap \
$lvmok{ } \
method{ swap } format{ } \
. \
# /var/db/application with at least 40% of disk provided, maximum 40% of disk provided, and ext4
40% 1000 40% ext4 \
$lvmok{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /var/db/application } \
. \
# / with at least 35% of disk provided, maximum 35% of disk provided, and ext4
35% 1000 35% ext4 \
$lvmok{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
# /var/log/application with at least 20% of disk provided, maximum rest of space, and ext4
20% 1000 1000000 ext4 \
$lvmok{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /var/log/application } \
. \
我出错的任何帮助