Do not print warning for 'sr' devices when converting fstab. Not all systems create the /dev/cdrom symlink for SCSI CD-ROM devices. Moreover, on systems with multiple CD-ROMs, having entries for /dev/sr* devices may be inevitable.
Signed-off-by: Tomáš Golembiovský <[email protected]> --- v2v/convert_linux.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml index 06943cd..9bc0271 100644 --- a/v2v/convert_linux.ml +++ b/v2v/convert_linux.ml @@ -1330,7 +1330,7 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = try List.assoc device map with Not_found -> if String.find device "md" = -1 && String.find device "fd" = -1 && - device <> "cdrom" then + String.find device "sr" = -1 && device <> "cdrom" then warning (f_"%s references unknown device \"%s\". You may have to fix this entry manually after conversion.") path device; device -- 2.9.2 _______________________________________________ Libguestfs mailing list [email protected] https://www.redhat.com/mailman/listinfo/libguestfs
