Répondre à la discussion

Il doit rester un dossier OC dans l'EFI du dd interne. A priori supprimer ce dossier OC devrait régler le problème.


Pour cela il faut monter la partition EFI du dd interne. On peut utiliser ce script :


[CODE]global disque, zone_text, media_name, list2

-- tell application "Finder"

set erreur to ""

try

    set liste_disques to do shell script "diskutil list | grep physical | grep -o 'disk[^ ]*'"

on error the error_message number the error_number

    display dialog "Error: " & the error_number & ". " & the error_message buttons {"OK"} default button 1

    set erreur to "yes"

end try

-- display dialog liste_disques as string


-- set liste_disques to items 1 thru nonbootnumber of liste_disques

if erreur = "" then

    set i1 to 1

    set j1 to count words in liste_disques

    set zone_text to ""

    set list2 to {}

    -- display dialog j1

    repeat with i1 from i1 to j1 by 1

        set disque to word i1 of liste_disques

        -- display dialog disque

        set diskinfo to do shell script "diskutil info " & disque & " | grep \"Media Name:\""

        set size_disque to words 3 thru 4 of (do shell script "diskutil info " & disque & " | grep \"Disk Size:\"")

        set partition_type to last word of (do shell script "diskutil info " & disque & "s1" & " | grep \"Partition Type:\"")

        if partition_type = "EFI" then

            set media_name to characters 28 thru end of diskinfo as string

            set zone_text to (disque & "s1" & " " & media_name & " - " & size_disque) as string

            copy zone_text to the end of list2

        end if

    end repeat

    if list2 = {} then

        display dialog "aucune partition EFI" buttons {"OK"} default button 1 with icon note

    else

        activate

        set your_selected_device_id to (choose from list list2 with prompt "Choisissez un volume EFI à monter") as string

        if your_selected_device_id = "false" then

            display dialog "Vous avez annulé" buttons {"OK"} default button 1 with icon note

        else

           

            set the_Item to your_selected_device_id

            set the_ID to first word of the_Item

            try

                do shell script "diskutil mount /dev/" & the_ID with administrator privileges

                -- do shell script "diskutil unmount /Volumes/EFI"

            on error the error_message number the error_number

                display dialog "Error: " & the error_number & ". " & the error_message buttons {"OK"} default button 1

                set erreur to "yes"

            end try

            if erreur = "" then

                display dialog "La partition EFI " & the_ID & " a été montée" & linefeed & "Pour l'éjecter vous taperez dans Terminal :" & linefeed & linefeed & "diskutil unmount " & the_ID buttons {"OK"} default button 1 with icon note

            end if

        end if

    end if

end if

-- end tell

[/CODE]


Une fois cette partition montée chercher le dossier OC dans le dossier EFI, et le mettre à la corbeille. Vider le corbeille ou supprimer le dossier immédiatement par un clic droit.


Au redémarrage le message devrait avoir disparu.


Par ailleurs il y a sur le site d'OCLP un package de désinstallation (OpenCore-Patcher-Uninstaller.pkg), mais je n'ai pas l'impression qu'il touche à l'EFI.


[URL unfurl="true"]https://github.com/dortania/OpenCore-Legacy-Patcher/releases/tag/2.2.0[/URL]