Package: fai-setup-storage
Version: 5.7.3
Tags: patch

repartitionning using a lvm configuration file and the option 
preserve_reinstall fails with the message : "Command had non-zero exit code"

The log also says:
Previous partitions overflow begin of preserved partition /dev/sda2

It seems that $FAI::configs does not contain a reference to a
dictionary but is a dictionary object, so dereferencing it leads to an
empty value. As a consequence VG is never preserved by the
preserve_reinstall option. And the last command during the
partitionning is a "vgchange -a n VG", that leads to inactivate
VG. Then when the command blkid is called to generate the /etc/fstab, 
it uses a VG that is not activated and the blkid command return an
error code 2. Thus, setup-storage fails.


Attached is a disk_config and the log output

Attachment: WORKSTATION_SD_A
Description: Binary data

Attachment: fai-setup-storage-debug.log
Description: Binary data

And here's the patch

Attachment: setup-storage.patch
Description: Binary data

Thanks to nicolas souedet for the excellent description of the problem
and the patch.
-- 
regards Thomas

Reply via email to