source: client/shared/lib/os-probes/mounted/efi/31part-x-y @ 3ad779e

918-git-images-111dconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since 3ad779e was d61c5e5, checked in by Irina Gómez <irinagomez@…>, 6 years ago

#802 #890 ogGrubInstallMbr detects Windows loader en ESP and saves de ogbootloader into directory 'grub'·

  • Property mode set to 100755
File size: 657 bytes
Line 
1#!/bin/sh
2# OG: Detects Microsoft bootloader on a EFI System Partition in directory Part-xx-yy (#802 #888)
3
4. /usr/share/os-prober/common.sh
5
6efi="$1"
7
8found=
9for microsoft in $(item_in_dir Part-..-.. "$efi"); do
10        for boot in $(item_in_dir boot "$efi/$microsoft"); do
11                bcd=$(item_in_dir bcd "$efi/$microsoft/$boot")
12                bootmgfw=$(item_in_dir bootmgfw.efi "$efi/$microsoft/$boot")
13                if [ -n "$bcd" -a -n "$bootmgfw" ]; then
14                        long="Windows Boot Manager"
15                        short=Windows
16                        path="$microsoft/$boot/$bootmgfw"
17                        found=true
18                        break
19                fi
20        done
21done
22
23
24if [ -n "$found" ]; then
25        label="$(count_next_label "$short")"
26        result "${path}:${long}:${label}"
27fi
28exit 0
Note: See TracBrowser for help on using the repository browser.