存储布局 - 自定义分区,具有交互式选择功能,可使用 ubuntu 22.04 自动安装轻松更新

存储布局 - 自定义分区,具有交互式选择功能,可使用 ubuntu 22.04 自动安装轻松更新

我们希望将下面的预置文件转换为自动安装。

用于 Ubuntu 18.04 LTS 的 PRESEED

d-i partman-auto/method string lvm

d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-basicfilesystems/no_swap boolean false
For LVM partitioning, you can select how much of the volume group to use
for logical volumes.

d-i partman-auto/choose_recipe select boot-root

d-i partman-auto/expert_recipe string
boot-root ::
512 2000 2048 ext4
$primary{ } $bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /boot }
.
2048 128 8192 linux-swap
$lvmok{ }
method{ swap } format{ }
.
5120 10000 -1 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ / }
.
5120 30000 25600 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /home }
.
1024 5000 4096 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /usr/local/safesquid }
.
5120 10000 8192 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /var/lib/safesquid }
.
512 5000 4096 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /opt/safesquid }
.
1024 5000 -1 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /var/cache/safesquid }
.
1024 45000 -1 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /var/log/safesquid }
.
512 16000 15360 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /var/www/safesquid }
.
2048 35000 -1 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /var/db/safesquid }
.

自动安装是否提供了一个选项,用户可以使用交互式菜单更新每个分区的存储大小。

相关内容