grub2: patch for ext234
This commit is contained in:
@@ -55,12 +55,12 @@ WINDOWS_EFI=$(/usr/sbin/efibootmgr -v | grep -E -m 1 '(WINDOWS|Windows Boot Mana
|
|||||||
if [ -z "$WINDOWS_EFI" ]; then
|
if [ -z "$WINDOWS_EFI" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
WIN_EFI_PATH_LINUX=/EFI/Microsoft/Boot/bkpbootmgfw.efi
|
WIN_EFI_PATH_LINUX=/EFI/Microsoft/Boot/bootmgfw.efi
|
||||||
|
|
||||||
#Determine EFI UUID
|
#Determine EFI UUID
|
||||||
WIN_EFI_UUID=$(grub2-probe --target=fs_uuid /boot/efi/EFI/Microsoft/Boot/bkpbootmgfw.efi)
|
WIN_EFI_UUID=$(grub2-probe --target=fs_uuid /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi)
|
||||||
|
|
||||||
ESP_SEARCH_HINTS=$(grub2-probe --target=hints_string /boot/efi/EFI/Microsoft/Boot/bkpbootmgfw.efi)
|
ESP_SEARCH_HINTS=$(grub2-probe --target=hints_string /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi)
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
menuentry "Windows Boot Manager" {
|
menuentry "Windows Boot Manager" {
|
||||||
@@ -71,7 +71,7 @@ cat << EOF
|
|||||||
insmod fat
|
insmod fat
|
||||||
insmod search_fs_uuid
|
insmod search_fs_uuid
|
||||||
insmod chain
|
insmod chain
|
||||||
search --fs-uuid --set=root --hint-bios --hint-efi --hint-baremetal ${ESP_SEARCH_HINTS} ${WIN_EFI_UUID}
|
search --fs-uuid --set=root ${ESP_SEARCH_HINTS} ${WIN_EFI_UUID}
|
||||||
chainloader $WIN_EFI_PATH_LINUX
|
chainloader $WIN_EFI_PATH_LINUX
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
|
|
||||||
<History>
|
<History>
|
||||||
<Update release="10">
|
<Update release="10">
|
||||||
<Date>2017-12-06</Date>
|
<Date>2017-12-25</Date>
|
||||||
<Version>2.02</Version>
|
<Version>2.02</Version>
|
||||||
<Comment>Patch for ext234.</Comment>
|
<Comment>Patch for ext234.</Comment>
|
||||||
<Name>Kamil Atlı</Name>
|
<Name>Kamil Atlı</Name>
|
||||||
|
|||||||
Reference in New Issue
Block a user