[Libguestfs] [PATCH 4/8] v2v: linux: add /boot/grub/grub.cfg as Grub2 config

Pino Toscano ptoscano at redhat.com
Mon Aug 8 16:38:51 UTC 2016


This is the location of the Grub2 configuration in Debian-based systems.
---
 v2v/convert_linux.ml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index 52d06bd..acc91dc 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -94,6 +94,7 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps =
   let grub_config, grub =
     let locations = [
       "/boot/grub2/grub.cfg", `Grub2;
+      "/boot/grub/grub.cfg", `Grub2;
       "/boot/grub/menu.lst", `Grub1;
       "/boot/grub/grub.conf", `Grub1;
     ] in
-- 
2.7.4




More information about the Libguestfs mailing list