[Libguestfs] [PATCH] v2v: linux: accept 'sr' devices is fstab
Tomáš Golembiovský
tgolembi at redhat.com
Wed Aug 10 22:25:53 UTC 2016
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ý <tgolembi at redhat.com>
---
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
More information about the Libguestfs
mailing list