按照这里的指令https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls#Running_a_truly_automatic_autoinstall 当我用于存储时:
storage:
layout:
name: lvm
Run Code Online (Sandbox Code Playgroud)
它创建 4GB 的根分区并且不创建交换。当我使用直接布局时
storage:
layout:
name: direct
Run Code Online (Sandbox Code Playgroud)
它创建具有磁盘上可用空间的根分区,并创建交换。有什么方法可以直接查看它是如何配置布局并修改该配置来调整我的需求的?我的意思是使用基于操作的配置,例如记录在此处:https : //wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls/ConfigReference#storage
我的意思是类似以下内容:
storage:
grub:
install_devices:
- esp-partition
swap:
filename: swap.img
size: 4GB
config:
- type: disk
id: disk0
ptable: gpt
wipe: superblock
grub_device: true
match:
size: largest
- id: esp-partition # create partitions on disk (like sda1)
type: partition
device: disk0
size: 512MB
flag: boot # EFI system partition needs boot flag
- type: partition
id: boot-partition
device: disk0
size: 1GB
- type: …
Run Code Online (Sandbox Code Playgroud)