
8

一键提取当前macOS的原始apfs.efi,并消除该文件的啰嗦模式制作无码apfs.efi
source link: https://www.itpwd.com/400.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

一键提取当前macOS的原始apfs.efi,并消除该文件的啰嗦模式制作无码apfs.efi_黑苹果笔记_IT密码
多macOS系统建议放入该文件,因为Clover自带的APFSdriverLoader.efi文件只能识别一个macOS,暂时不能识别多个macOS系统。
使用要求:任何macOS High Sierra 10.13或者更高的系统,不论白苹果/黑苹果
使用方法:依次打开启动台-其他-终端,复制以下一行代码,Enter即可,会自动提取到当前桌面的新建文件夹内,生成后请自行备份。
如在用macOS Catalina 10.15(19A583)系统,即桌面会自动创建文件夹名为apfs.efi-10.15(19A583),并计算MD5码供校验。
sh -c "$(curl -fsSL https://www.itpwd.com/itest/PatchAPFS.sh)"
原始文件:apfs-origin.efi
无码文件:apfs-nolog.efi
提取后备份,通常把无码文件放入该路径使用:EFI-CLOVER-drivers-UEFI,可参考下列链接:
调用源码如下(供爱好者参考,一般用户请无视)
#!/bin/bash
ver1=`sw_vers | grep ProductVersion | cut -d':' -f2`
ver2=`sw_vers | grep BuildVersion | cut -d':' -f2`
ver3=`echo $ver1"("$ver2")" | sed 's/ //g'`
cd ~/Desktop/
DN="apfs.efi-$ver3"
if [ ! -d "$DN" ]; then
mkdir $DN
fi
cp /usr/standalone/i386/apfs.efi ./$DN/apfs-origin.efi && MD5 ./$DN/apfs-origin.efi
cp /usr/standalone/i386/apfs.efi ./$DN/apfs-nolog.efi
perl -i -pe 's|\x00\x74\x07\xb8\xff\xff|\x00\x90\x90\xb8\xff\xff|sg' ./$DN/apfs-nolog.efi && MD5 ./$DN/apfs-nolog.efi
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK