Description
CL200 series is industrial x86_64 computer.
The manual is available here
This post follows the one for NUC computer:
And uses mender-convert 2.1.0
The only difference is in the conversion process is that
MENDER_STORAGE_DEVICE_BASE=/dev/mmcblk1p
in the cl200_x86-64_hdd_config file. Other then that, it is identical to generic_x86-64_hdd_config
The conversion went smoothly.
Problem: resulting HD does not boot
GRUB is dropping into prompt (grub>)
It appeared that two created A and B partitions have the same UUID:
(showed on the disk image here)
/dev/loop0p2: UUID="121ddda3-31e6-449e-a880-fbc4c06b1f14" TYPE="ext4" PARTLABEL="primary" PARTUUID="bbad2e8c-5453-4549-85f6-2df5dbd2929a"
/dev/loop0p3: UUID="121ddda3-31e6-449e-a880-fbc4c06b1f14" TYPE="ext4" PARTLABEL="primary" PARTUUID="9eeb7225-d801-4762-9f96-da30c06c5634"
/dev/loop0p4: UUID="ac67c903-d527-4a03-a89f-18030f69b8b9" TYPE="ext4" PARTLABEL="primary" PARTUUID="f098d7ce-6ee4-4d15-9b10-1f4c54496ba6"
/dev/loop0: PTUUID="6c17766b-aaf0-40e8-ab95-e496c6ab59ed" PTTYPE="gpt"
/dev/loop0p1: UUID="B9E1-2DA7" TYPE="vfat" PARTLABEL="ESP" PARTUUID="00abec87-ab23-48fa-978d-f2736e60b114"
From other hand /EFI/ubuntu/grub.cfg looks like:
search.fs_uuid 828235fc-0cfd-4d29-baaf-f0254e8d5a1d root
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
Further search showed that UUID 828235fc-0cfd-4d29-baaf-f0254e8d5a1d is embedded into
different configuration files on the disk image.
Possible fix (???)
Use tune2fs to assign UUID from grub.cfg to both partitions, like below:
(this is done using USB booted live linux distro, grml https://grml.org)
tune2fs -U 828235fc-0cfd-4d29-baaf-f0254e8d5a1d /dev/mmcblk1p2
tune2fs -U 828235fc-0cfd-4d29-baaf-f0254e8d5a1d /dev/mmcblk1p3
After this operation box is booting just fine, everything appear to work, I was able
to take snapshot, upload with stand-alone client, reboot, observe partition change,
and commit.
I used NUC procedure on another UEFI computer with root name /dev/sda and
it worked without need to change UUIDs; however partitions and grub.cfg UUIDs were
different.
I hope this could be useful.
Mikhail