I've managed to create an image (using the FAI 5.4~beta2 version) with following change:
--- Volumes.pm 2017-01-04 21:18:01.351924832 +0100 +++ /usr/share/fai/setup-storage/Volumes.pm 2017-08-18 22:51:39.620984379 +0200 @@ -401,6 +401,7 @@ use Linux::LVM; use Cwd qw(abs_path); + return; # get the existing volume groups foreach my $vg (get_volume_group_list()) { # initialise the hash entry So disabling the detection of the current LVM devices helps. Then I used the name vg8 (instead of vg1) in the disk_config/LVM file. On the host, where I'm calling fai-diskimage I'm using vg1, so this should not be used in the disk config. Currently the vg8 is not cleaned up at the end. I have to manage to tell setup-storage not to detect the lvm things when setup-storage is used by fai-diskimage. This is not that easy. But this test shows, that it's possible, although some cleanup has to be added. -- regards Thomas