there was still a point where we got the wrong string
on createosd we get the devpath (/dev/cciss/c0d0)
but need the info from get_disks, which looks in /sys/block
where it needs to be cciss!c0d0
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
my $lvmlist = get_lvm_devices();
+ # we get cciss/c0d0 but need cciss!c0d0
+ if (defined($disk) && $disk =~ m|^cciss/|) {
+ $disk =~ s|cciss/|cciss!|;
+ }
+
dir_glob_foreach('/sys/block', '.*', sub {
my ($dev) = @_;
return if defined($disk) && $disk ne $dev;