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

Pino Toscano ptoscano at redhat.com
Fri Aug 26 09:02:06 UTC 2016


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

diff --git a/v2v/linux_bootloaders.ml b/v2v/linux_bootloaders.ml
index d12edf8..74c40c2 100644
--- a/v2v/linux_bootloaders.ml
+++ b/v2v/linux_bootloaders.ml
@@ -299,6 +299,7 @@ let detect_bootloader (g : G.guestfs) inspect =
   let config_file, typ =
     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