On Debian-based systems, Grub2 is in /boot/grub (as already known after
commit 03b9f2b967c4c61a5acda6a3802317be109d213e), so make sure
device.map is changed even in this situation.
---
 v2v/linux_bootloaders.ml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/v2v/linux_bootloaders.ml b/v2v/linux_bootloaders.ml
index 6582970..061d945 100644
--- a/v2v/linux_bootloaders.ml
+++ b/v2v/linux_bootloaders.ml
@@ -266,6 +266,7 @@ object (self)
     "/files/etc/default/grub/GRUB_CMDLINE_LINUX";
     "/files/etc/default/grub/GRUB_CMDLINE_LINUX_DEFAULT";
     "/files/boot/grub2/device.map/*[label() != \"#comment\"]";
+    "/files/boot/grub/device.map/*[label() != \"#comment\"]";
   ]
 
   method list_kernels =
-- 
2.9.3

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to