search for: uefi_fallback_path

Displaying 2 results from an estimated 2 matches for "uefi_fallback_path".

2020 May 15
1
[PATCH] v2v: fix UEFI bootloader for linux guests
...() + method virtual fix_efi_boot : unit -> string end (* Helper function for SUSE: remove (hdX,X) prefix from a path. *) @@ -43,6 +44,115 @@ let remove_hd_prefix = let rex = PCRE.compile "^\\(hd.*\\)" in PCRE.replace rex "" +(* Standard uefi fallback path *) +let uefi_fallback_path = + "/boot/efi/EFI/BOOT/" + +(* Helper function checks if 'source' contains 's' *) +let contains source s = + let re = Str.regexp_string s in + try + ignore (Str.search_forward re source 0); + true + with Not_found -> false + +(* Helper function to...
2020 Jul 24
3
[PATCH v2] v2v: fix UEFI bootloader for linux guests
...ack path (/EFI/BOOT/BOOT<arch>.efi) + the vm is unbootable after conversion. + The following code tries to make an uefi fallback path for + a uefi linux vm. + *) + match inspect.i_firmware with + | I_UEFI _ -> ( + (* Standard uefi fallback path *) + let uefi_fallback_path = "/boot/efi/EFI/BOOT/" in + + (* Helper function checks if 'source' contains 's' *) + let contains source s = ( + let re = Str.regexp_string s in + try + ignore (Str.search_forward re source 0); + true + with Not_found -&gt...