Hi,
I am trying to combine both manual partitionning and LUKS, all through ignition. Trying both features separately works, but the combination does not, and I fail to understand why.
variant: fcos
version: 1.6.0
passwd:
users:
- name: core
ssh_authorized_keys:
- XXX
password_hash: XXX
storage:
luks:
- name: root
label: luks-root
device: /dev/disk/by-partlabel/root
clevis:
custom:
needs_network: false
pin: tpm2
config: '{"pcr_bank":"sha256","pcr_ids":"7"}'
wipe_volume: true
filesystems:
- device: /dev/mapper/root
format: xfs
wipe_filesystem: true
label: root
This works.
variant: fcos
version: 1.6.0
passwd:
users:
- name: core
ssh_authorized_keys:
- XXX
password_hash: XXX
storage:
disks:
- device: /dev/disk/by-id/coreos-boot-disk
wipe_table: true
partitions:
- label: root
number: 4
size_mib: 8192
resize: true
- label: var
size_mib: 0
resize: true
filesystems:
- device: /dev/disk/by-partlabel/root
label: root
format: xfs
wipe_filesystem: true
- device: /dev/disk/by-partlabel/var
label: var
path: /var
format: btrfs
with_mount_unit: true
wipe_filesystem: true
This works.
variant: fcos
version: 1.6.0
passwd:
users:
- name: core
ssh_authorized_keys:
- XXX
password_hash: XXX
storage:
disks:
- device: /dev/disk/by-id/coreos-boot-disk
wipe_table: true
partitions:
- label: root
number: 4
size_mib: 8192
resize: true
- label: var
size_mib: 0
resize: true
luks:
- name: root
label: luks-root
device: /dev/disk/by-partlabel/root
clevis:
custom:
needs_network: false
pin: tpm2
config: '{"pcr_bank":"sha256","pcr_ids":"7"}'
wipe_volume: true
- name: var
label: luks-var
device: /dev/disk/by-partlabel/var
clevis:
custom:
needs_network: false
pin: tpm2
config: '{"pcr_bank":"sha256","pcr_ids":"7"}'
wipe_volume: true
filesystems:
- device: /dev/mapper/root
label: root
format: xfs
wipe_filesystem: true
- device: /dev/mapper/var
label: var
path: /var
format: btrfs
with_mount_unit: true
wipe_filesystem: true
This fails with the following rdsosreport.txt: https://paste.hostux.net/?d0cf25bd7238e8bc#38r8ie9PjosDZEF2ToWG89uBxmLpEMFHgivftXUr48Sc
The error appears to be Error: System has 0 devices with a filesystem labeled 'boot': []. And indeed, with lsblk I can see that no boot partition was created. No EFI-SYSTEM, no BIOS-BOOT. Only the partitions I have manually created.
The question that I can’t answer is:
Apparently, FCOS creates its default partitions in both working cases. If I do manual partitioning, OR if I encrypt the root with LUKS, it does create the required partitions. But when doing both at the same time, it does not. Why?
Would you have an idea?
Thanks in advance for any answer.