Contribute
Register

How to hide Preboot

Status
Not open for further replies.
Joined
Aug 3, 2011
Messages
181
Motherboard
HP ProBook 4540s-Clover
CPU
i7-3612QM
Graphics
HD4000, 1366x768
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
There are 2 extra partition at clover boot menu:
1. Boot FileVault Prebooter from Preboot

2. Boot macOS Install Prebooter from Preboot

i manage to hide no. 2 and still struggling with no 1. Please help
Code:
    <key>GUI</key>
        <key>Custom</key>
        <dict>
            <key>Entries</key>
            <array>
                <dict>
                    <key>Disabled</key>
                    <false/>
                    <key>FullTitle</key>
                    <string>UEFI Internal</string>
                    <key>Hidden</key>
                    <string>Always</string>
                    <key>Ignore</key>
                    <false/>
                    <key>NoCaches</key>
                    <false/>
                    <key>Type</key>
                    <string>Other</string>
                </dict>
                <dict>
                    <key>Disabled</key>
                    <false/>
                    <key>FullTitle</key>
                    <string>Recovery HD</string>
                    <key>Hidden</key>
                    <true/>
                    <key>Ignore</key>
                    <false/>
                    <key>NoCaches</key>
                    <false/>
                    <key>Type</key>
                    <string>OSXRecovery</string>
                    <key>VolumeType</key>
                    <string>Internal</string>
                </dict>
                <dict>
                    <key>Disabled</key>
                    <false/>
                    <key>FullTitle</key>
                    <string>Preboot</string>
                    <key>Hidden</key>
                    <true/>
                    <key>Ignore</key>
                    <false/>
                    <key>NoCaches</key>
                    <false/>
                    <key>Type</key>
                    <string>OSXInstaller</string>
                    <key>VolumeType</key>
                    <string>Internal</string>
                </dict>
            </array>
        </dict>
 
There are 2 extra partition at clover boot menu:
1. Boot FileVault Prebooter from Preboot

2. Boot macOS Install Prebooter from Preboot

i manage to hide no. 2 and still struggling with no 1. Please help
Code:
    <key>GUI</key>
        <key>Custom</key>
        <dict>
            <key>Entries</key>
            <array>
                <dict>
...
  stuff cut out
...
        </dict>

try this:

Code:
    <key>GUI</key>
    <dict>
        <key>Hide</key>
        <array>
            <string>Windows</string>
            <string>BOOTX64.EFI</string>
            <string>Preboot</string>
            <string>Recovery</string>
        </array>
...

It hides all of the preboot and Recovery drives.
 
tested it works (r4674)

Code:
<dict>
    <key>GUI</key>
    <dict>
        <key>Hide</key>
        <array>
            <string>Preboot</string>
            <string>Recovery</string>
        </array>
    </dict>
</dict>
 
It has been working for the last several versions of Clover, which version are you using?
 
You should use UUID instead of visible names of the disks.

Check my build description and my config.plist. I hided everything except Preboot and Windows.

https://www.tonymacx86.com/threads/...i7-8700-gigabyte-z370n-rx560-16gb-ram.260337/

using either UUID or volume name as a filtering criteria is not an issue, it just depends on your application.
UUID is specific to a particular device, but volume name is more general, you don't have to modified the config.plist each time you add a new disk. one criteria can be used to filter out 10 disks with same volume name.
 
using either UUID or volume name as a filtering criteria is not an issue, it just depends on your application.
UUID is specific to a particular device, but volume name is more general, you don't have to modified the config.plist each time you add a new disk. one criteria can be used to filter out 10 disks with same volume name.
I need Preboot drive for FileVault, and don’t need others. Usual criteria is not my case :)
 
SOLVED to Keep clover boot menu clean
  • How to hide Preboot partitions?
  • Hide All windows partitions except UEFI bootable partitions?
  • Hide Recovery partition?
screenshot3.png

Code:
    <key>GUI</key>
    <dict>
        <key>Custom</key>
        <dict>
            <key>Entries</key>
            <array>
                <dict>
                    <key>Disabled</key>
                    <false/>
                    <key>FullTitle</key>
                    <string>UEFI Internal</string>
                    <key>Hidden</key>
                    <string>Always</string>
                    <key>Ignore</key>
                    <false/>
                    <key>NoCaches</key>
                    <false/>
                    <key>Type</key>
                    <string>Other</string>
                </dict>
                <dict>
                    <key>Disabled</key>
                    <false/>
                    <key>FullTitle</key>
                    <string>Recovery HD</string>
                    <key>Hidden</key>
                    <true/>
                    <key>Ignore</key>
                    <false/>
                    <key>NoCaches</key>
                    <false/>
                    <key>Type</key>
                    <string>OSXRecovery</string>
                    <key>VolumeType</key>
                    <string>Internal</string>
                </dict>
            </array>
        </dict>
        <key>Hide</key>
        <array>
            <string>HD(5,GPT,8745CF31-7CCF-4CF8-B8A5-EDAD44E24816,0x2E9708D0,0x45D964B8)\VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,B858A518799F7243B2604CF30D2B5DB3)</string>
        </array>

Hide Preboot.png

Steps:
0.
Generate Clover Boot Log with Clover Configurator and mount EFI volume

1.
I used TextWrangler to edit bootlog.txt Search "Preboot" to get [appropriate Volume number e.g [12] under === [ ScanLoader ] ====
Code:
Preboot Volume ---> [12]: 'Preboot'
Macintosh HD Volume ---> [13]: 'Macintosh HD'
Recovery Volume ---> [14]: 'Recovery'

1:102  0:000  === [ ScanLoader ] ========================================
1:102  0:000  - [07]: 'EFI'
1:124  0:022          AddLoaderEntry for Volume Name=EFI
1:124  0:000      Not match custom entry 0: Type: not match
1:124  0:000      Not match custom entry 1: VolumeType: match, Type: not match
1:124  0:000      Not match custom entry 2: VolumeType: match, Type: not match
1:172  0:048          AddLoaderEntry for Volume Name=EFI
1:172  0:000      Not match custom entry 0: Type: not match
1:172  0:000      Not match custom entry 1: VolumeType: match, Type: not match
1:172  0:000      Not match custom entry 2: VolumeType: match, Type: not match
1:237  0:064          AddLoaderEntry for Volume Name=EFI
1:237  0:000          skipped because entry is hidden
1:237  0:000  - [12]: 'Preboot'
1:263  0:026          AddLoaderEntry for Volume Name=Preboot
1:263  0:000      Not match custom entry 0: Type: not match
1:263  0:000      Not match custom entry 1: VolumeType: match, Type: not match
1:263  0:000      Not match custom entry 2: VolumeType: match, Type: not match
1:283  0:020      Check if volume Is Hibernated:
1:283  0:000      Check sleep image 'by signature':
1:286  0:003      using default sleep image name = \private\var\vm\sleepimage
1:287  0:001      sleepimage not found -> Not Found
1:287  0:000      hibernated: no - sign
1:292  0:004          [!] Icon 18 (icons\vol_internal_apfs.icns) not found (path: EFI\CLOVER\themes\bootcamp)
1:304  0:012          AddLoaderEntry for Volume Name=Preboot
1:304  0:000      Not match custom entry 0: Type: not match
1:304  0:000      Not match custom entry 1: VolumeType: match, Type: not match
1:304  0:000      Skipped because matching custom entry 2!
1:422  0:117  - [13]: 'Macintosh HD'
1:610  0:188          AddLoaderEntry for Volume Name=Macintosh HD
1:610  0:000      Not match custom entry 0: Type: not match
1:610  0:000      Not match custom entry 1: VolumeType: match, Type: not match
1:610  0:000      Not match custom entry 2: VolumeType: match, Type: not match
1:647  0:037      Check if volume Is Hibernated:
1:647  0:000      Check sleep image 'by signature':
1:714  0:067      read prefs \Library\Preferences\com.apple.PowerManagement.plist status=Success
1:714  0:000      using default sleep image name = \private\var\vm\sleepimage
1:752  0:037      sleepimage not found -> Not Found
1:752  0:000      hibernated: no - sign
1:914  0:162  - [14]: 'Recovery'
1:934  0:019          AddLoaderEntry for Volume Name=Recovery
1:934  0:000      Not match custom entry 0: Type: not match
1:934  0:000      Skipped because matching custom entry 1!
2:052  0:118  - [15]: 'VM'

2.
Get the UUID of appropriate volume number [12] from [ ScanVolumes ]

Code:
1:019  0:078  === [ ScanVolumes ] =======================================
1:030  0:000  - [12]: Volume: PciRoot(0x0)\Pci(0x17,0x0)\Sata(0x4,0xFFFF,0x0)\HD(5,GPT,8745CF31-7CCF-4CF8-B8A5-EDAD44E24816,0x2E9708D0,0x45D964B8)\VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,B858A518799F7243B2604CF30D2B5DB3)
1:030  0:000  - [13]: Volume: PciRoot(0x0)\Pci(0x17,0x0)\Sata(0x4,0xFFFF,0x0)\HD(5,GPT,8745CF31-7CCF-4CF8-B8A5-EDAD44E24816,0x2E9708D0,0x45D964B8)\VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,2748FC6DAC9ADB32B3240B05769894FA)
1:030  0:000  - [14]: Volume: PciRoot(0x0)\Pci(0x17,0x0)\Sata(0x4,0xFFFF,0x0)\HD(5,GPT,8745CF31-7CCF-4CF8-B8A5-EDAD44E24816,0x2E9708D0,0x45D964B8)\VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,85752E8128C4D34E8452F37EA4B98810)

3.
Copy [12] UUID
Code:
HD(5,GPT,8745CF31-7CCF-4CF8-B8A5-EDAD44E24816,0x2E9708D0,0x45D964B8)\VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,B858A518799F7243B2604CF30D2B5DB3)

go to GUI under Hide Volume
use + to add new entry
then Paste copied [12] UUID

4.
go to GUI under Custom Entries
use + to add new entry
a) 'Title / FullTitle' = Recovery HD
b) Hidden to Yes
c) Set Type* to OSXRecovery
d) Leave VolumeType to Internal

5.
go to GUI under Custom Entries
use + to add new entry
a) 'Title / FullTitle' = UEFI Internal
b) Hidden to Always
c) Set Type* to Other


done...
Remember F3 show hidden partition at boot menu
 
Last edited:
Status
Not open for further replies.
Back
Top