Disk config with GRUB/EFI, RAID + LVM
Rémy Dernat
remy.d1 at gmail.com
Thu Nov 30 11:14:57 CET 2023
Hi awesome Fai guys,
I have a weird syntax issue with the following disk_config:
```
# example of new config file for setup-storage
#
# <type> <mountpoint> <size> <fs type> <mount options> <misc
options>
disk_config disk1 disklabel:gpt fstabkey:uuid
primary - 2G - -
primary /boot/efi 1G vfat rw createopts="-F32"
primary swap 2G swap sw,pri=1
primary - 0- - -
#disk_config disk2 sameas:disk1
disk_config disk2 disklabel:gpt fstabkey:uuid
primary - 2G - -
primary /boot/efi2 1G vfat rw createopts="-F32"
primary swap 2G swap sw,pri=1
primary - 0- - -
disk_config raid disklabel:gpt fstabkey:uuid bootable:1
raid1 /boot disk1.1,disk2.1 - - mdcreateopts="--metadata=0.90"
raid1 - disk1.4,disk2.4 - -
disk_config lvm fstabkey:uuid
vg vg_system md1
vg_system-root / 60G-200G ext4 rw,noatime
vg_system-tmp /tmp 20G-50G ext2 rw,noatime,nosuid,nodev
##vg_system-scratch /scratch 30%- ext2 rw,noatime
vg_system-home /home 30%- ext4 rw,noatime,nosuid,nodev
```
Resulting in the error:
```
Starting setup-storage 3.0
Using config file: GRUB_EFI_RAID1
ERROR (line 18): Invalid line: Was expecting '\n' but found "disk_config
raid disklabel:gpt fstabkey:uuid bootable:1" instead
Syntax error
```
Can be checked again with `setup-storage -s -f GRUB_EFI_RAID1`. I also
tried to display hidden characters with 'cat -A ...' but I did not see
anything strange.
Any idea would be useful !
Thanks :)
More information about the linux-fai
mailing list