将 cloud-init subiquity 从 22.04 移至 24.04

将 cloud-init subiquity 从 22.04 移至 24.04

所以我有一个可以在 22.04 上运行的 cloud-init,但在 24.04 上却不行。我正在尝试弄清楚。我删除了所有无关的东西,并将其归结为一些存储内容。

这是设置 SSD 存储的块

- type: disk
  match:
    ssd: yes
    path: /dev/sd*
  preserve: true
  name: ''
  grub_device: false
  id: raid-disk-1
- type: disk
  match:
    ssd: yes
    path: /dev/sd*
  preserve: true
  name: ''
  grub_device: false
  id: raid-disk-2
- name: md127
  raidlevel: container
  devices:
  - raid-disk-1
  - raid-disk-2
  spare_devices: []
  preserve: true
  metadata: imsm
  type: raid
  id: raid-md127
- name: md126
  raidlevel: raid1
  devices: []
  spare_devices: []
  preserve: true
  wipe: superblock
  container: raid-md127
  type: raid
  id: raid-md126

但是,当我接下来添加 fstype 时

- fstype: xfs
  size: 100%
  volume: raid-md126
  preserve: false
  type: format
  id: format-1

向上述任何块添加“size”关键字都不会改变任何内容,而且我仍然收到此错误:

finish: subiquity/Install/install/curtin_install: 'NoneType' object has no attribute 'size'

我在这里遗漏了什么?

相关内容