<div dir="ltr">Hi everyone,<br><br><div>I am trying to setup a device using UEFI mode, LVM and LUKS encryption.<br>Unfortunately I end up using the error below.<br>____________________________________________________________<br><div>Calling task_partition</div><div>Starting setup-storage 2.1</div><div>Using config file: /var/lib/fai/config/disk_config/FW_UEFI_LUKS</div><div>Syntax error: invalid partition type at /usr/share/fai/setup-storage/Parser.pm line 180, <$config_file> line 1.</div><div><br></div><div>This is your disk_config file:</div><div># <type> <mountpoint> <size>   <fs type> <mount options> <misc options></div><div><br></div><div>disk_config disk1 disklabel:gpt bootable:2 fstabkey:uuid</div><div>primary /boot/efi<span style="white-space:pre">    </span>512<span style="white-space:pre">  </span>vfat<span style="white-space:pre"> </span>rw</div><div>logical<span style="white-space:pre">     </span>-<span style="white-space:pre">    </span>95-100%<span style="white-space:pre">      </span>-<span style="white-space:pre">    </span>-</div><div><br></div><div>disk_config cryptsetup</div><div>luks<span style="white-space:pre">   </span>-<span style="white-space:pre">    </span>disk1.5<span style="white-space:pre">      </span>-<span style="white-space:pre">    </span>-</div><div><br></div><div>disk_config lvm</div><div>vg<span style="white-space:pre">    </span>system<span style="white-space:pre">       </span>disk1.5</div><div>system-swap<span style="white-space:pre">    </span>swap<span style="white-space:pre"> </span>RAM:105%<span style="white-space:pre">     </span>swap<span style="white-space:pre"> </span>defaults</div><div>system-root<span style="white-space:pre">   </span>/<span style="white-space:pre">    </span>90-100%<span style="white-space:pre">      </span>ext4<span style="white-space:pre"> </span>rw,noatime,errors=remount-ro</div><div><br></div><div>Error in task partition. Code: 710</div></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">____________________________________________________________<br></span><br><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">As soon as I change "disklabel:gpt" to "disklabel:msdos" the setup-storage action works correctly.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">But of course I end up with an not booable system using that disk config... </span><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Any idea what could be the error on this? I am absolutely stuck at the moment :(</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Thank you everyone in advance</span></div><div><br></div><div><br><br>Disk configurations that are nearly similar to previous one and working correctly are:</div><div><br></div><div>############# Legacy boot mode with LVM and LUKS <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">#############<span> </span></span></div><div>___________________________________________________________<br></div><div><div>disk_config disk1 disklabel:msdos bootable:2 fstabkey:uuid</div><div>primary<span style="white-space:pre">    </span>/boot<span style="white-space:pre">        </span>512<span style="white-space:pre">  </span>ext3<span style="white-space:pre"> </span>defaults</div><div>logical<span style="white-space:pre">       </span>-<span style="white-space:pre">    </span>95-100%<span style="white-space:pre">      </span>-<span style="white-space:pre">    </span>-</div><div><br></div><div>disk_config cryptsetup</div><div>luks<span style="white-space:pre">   </span>-<span style="white-space:pre">    </span>disk1.5<span style="white-space:pre">      </span>-<span style="white-space:pre">    </span>-</div><div><br></div><div>disk_config lvm</div><div>vg<span style="white-space:pre">    </span>system<span style="white-space:pre">       </span>disk1.5</div><div>system-swap<span style="white-space:pre">    </span>swap<span style="white-space:pre"> </span>RAM:105%<span style="white-space:pre">     </span>swap<span style="white-space:pre"> </span>defaults</div><div>system-root<span style="white-space:pre">   </span>/<span style="white-space:pre">    </span>90-100%<span style="white-space:pre">      </span>ext4<span style="white-space:pre"> </span>rw,noatime,errors=remount-ro</div></div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">-------------------------------------------------------------------------------------------------------</span><div><div>Calling task_partition</div><div>Starting setup-storage 2.1</div><div>Using config file: /var/lib/fai/config/disk_config/FW_BIOS_LUKS</div><div>Parted could not read a disk label (new disk?)</div><div>Executing: parted -s /dev/vda mklabel msdos</div><div>  WARNING: Failed to connect to lvmetad. Falling back to device scanning.</div><div>    Creating directory "/run/lock/lvm"</div><div>    No volume groups found.</div><div>Executing: parted -s /dev/vda mklabel msdos</div><div>Executing: parted -s /dev/vda mkpart primary "ext3" 1048576B 537919487B</div><div>Executing: parted -s /dev/vda mkpart extended "" 537919488B 42949672959B</div><div>Executing: parted -s /dev/vda set 2 boot on</div><div>Executing: parted -s /dev/vda mkpart logical "" 537920512B 42949672959B</div><div>Executing: mkfs.ext3  /dev/vda1</div><div>Executing: head -c 2048 /dev/urandom | od | tee /tmp/fai/crypt_dev_vda5</div><div>Executing: yes YES | cryptsetup luksFormat /dev/vda5 /tmp/fai/crypt_dev_vda5  -c aes-cbc-essiv:sha256 -$</div><div>Executing: cryptsetup luksOpen /dev/vda5 crypt_dev_vda5 --key-file /tmp/fai/crypt_dev_vda5</div><div>Executing: pvcreate -ff -y  /dev/mapper/crypt_dev_vda5</div><div>Executing: vgcreate  system  /dev/mapper/crypt_dev_vda5</div><div>Executing: vgchange -a y system</div><div>Executing: lvcreate  --yes -n swap -L 2104.44609375 system</div><div>Executing: mkswap  /dev/system/swap</div><div>Executing: lvcreate  --yes -n root -L 37938.0829394531 system</div><div>Executing: mkfs.ext4  /dev/system/root</div><div>/dev/vda1 UUID=2d95b9d9-15e6-4bb7-8bf2-a61a392ae870</div><div>/dev/system/swap UUID=fd5ec287-d758-4aa8-a085-1f6b991d2cfc</div><div>/dev/system/root UUID=f12cb440-cc43-4a2a-a545-96169e24650c</div><div>Calling task_mountdisks</div></div><div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">############ UEFI boot mode without LVM and LUKS </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline">############</span><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">___________________________________________________________</span><br></div><div><div>disk_config disk1 disklabel:gpt bootable:3 fstabkey:uuid</div><div>primary /boot/efi 512<span style="white-space:pre">      </span>vfat<span style="white-space:pre"> </span>rw</div><div>primary swap   RAM:105%   swap  sw</div><div>primary /      90-100%     ext4  rw,noatime,errors=remount-ro</div></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">-------------------------------------------------------------------------------------------------------</span><br><div>Calling task_partition</div><div>Starting setup-storage 2.1</div><div>Using config file: /var/lib/fai/config/disk_config/FW_UEFI</div><div>Parted could not read a disk label (new disk?)</div><div>Executing: parted -s /dev/vda mklabel gpt</div><div>Executing: parted -s /dev/vda mklabel gpt</div><div>Executing: parted -s /dev/vda mkpart primary "fat32" 1048576B 537919487B</div><div>Executing: parted -s /dev/vda mkpart primary "linux-swap" 537919488B 2742603775.6B</div><div>Executing: parted -s /dev/vda mkpart primary "ext3" 2742603776.6B 42949655551.6B</div><div>Executing: parted -s /dev/vda set 3 boot on</div><div>Executing: mkfs.vfat  /dev/vda1</div><div>Executing: mkswap  /dev/vda2</div><div>Executing: mkfs.ext4  /dev/vda3</div><div>/dev/vda2 UUID=68b8c4c1-927f-48cd-a425-0ff30f4a69c8</div><div>/dev/vda3 UUID=78d000b5-d84f-49c4-9bee-954bf7469105</div><div>/dev/vda1 UUID=3A65-9DA7</div><div>Calling task_mountdisks</div><div><br></div><br></div></div>