我正在尝试在 ubuntu 14.04 上自定义 preseed。存储安装所需的所有参数的位置。在首次 OS 启动时导出值和变量,无需任何人工干预即可完成配置。在这个硬件配置过程中,我选择了基于 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 } \
. \
我出错的任何帮助