Hi,
I am new to FCOS and Butane/Ignition.
I am looking to make a Butane file that wipes the entire disk and recreates the required partitions. I first tried:
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: swap
number: 5
size_mib: 1024
resize: true
- label: var
number: 6
size_mib: 0
resize: true
filesystems:
- device: /dev/disk/by-partlabel/root
label: root
format: xfs
wipe_filesystem: true
- device: /dev/disk/by-partlabel/swap
label: swap
format: swap
with_mount_unit: true
wipe_filesystem: true
- device: /dev/disk/by-partlabel/var
label: var
path: /var
format: btrfs
with_mount_unit: true
wipe_filesystem: true
This example comes directly from Configuring Storage :: Fedora Docs and Configuring Storage :: Fedora Docs
With this setup, I get the following error:
Error: System has 0 devices with a filesystem labeled ‘boot’:
And, indeed, if I look at the partitions with lsblk, there is only the partitions I have manually set up in that butane file, so not boot partition.
I could not find a definitive answer to this question:
If I define my own partitions, does FCOS still creates the default partitions, aka:
?
I have found examples of people using wipe_table: true, but none of them were manually defininge BIOS-BOOT, EFI-SYSTEM, boot… partitions. The official documentation is not doing it either.
Then, if manually defining these partitions too is required if I want to add my own, what should be the correct way of defining them ?
I have been trying for hours now to find the correct declaration for BIOS-BOOT, EFI-SYSTEM and boot, but I could not find a working configuration. My current (non working) configuration is:
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: BIOS-BOOT
number: 1
size_mib: 1
resize: true
- number: 2
size_mib: 384
resize: true
- label: boot
number: 3
size_mib: 384
resize: true
- label: root
number: 4
size_mib: 8192
resize: true
- label: swap
number: 5
size_mib: 1024
resize: true
- label: var
number: 6
size_mib: 0
resize: true
filesystems:
- device: /dev/disk/by-label/EFI-SYSTEM
path: /boot/efi
format: vfat
wipe_filesystem: true
- device: /dev/disk/by-partlabel/boot
label: boot
path: /boot
format: xfs
wipe_filesystem: true
- device: /dev/disk/by-partlabel/root
label: root
format: xfs
wipe_filesystem: true
- device: /dev/disk/by-partlabel/swap
label: swap
format: swap
with_mount_unit: true
wipe_filesystem: true
- device: /dev/disk/by-partlabel/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/?5a6b4d005bcf3356#HpXceNjeTMsW5ZZyduWRZWT7Vvco5GTn2Ln7bmHH3aMy
Could you please help me to find the correct partitioning ? Is there a way to tell FCOS to apply the default partitioning, after the table has been wiped ?
Thanks in advance for your help

