mirror of
https://github.com/sickcodes/osx-serial-generator.git
synced 2024-12-28 18:36:32 +00:00
OSX-KVM already has OcBinaryData as a submodule
This commit is contained in:
parent
c7cc676ce1
commit
3f0a20392c
|
@ -192,16 +192,30 @@ done
|
||||||
|
|
||||||
|
|
||||||
download_qcow_efi_folder () {
|
download_qcow_efi_folder () {
|
||||||
[ -d ./OSX-KVM ] || git clone --depth 1 https://github.com/kholia/OSX-KVM.git
|
|
||||||
cp -ra ./OSX-KVM/OpenCore-Catalina/EFI .
|
export EFI_FOLDER=./OpenCore-Catalina/EFI
|
||||||
mkdir -p ./EFI/OC/Resources
|
export RESOURCES_FOLDER=./resources/OcBinaryData/Resources
|
||||||
# clone some Apple drivers
|
|
||||||
[ -d ./OcBinaryData ] || git clone --depth 1 https://github.com/acidanthera/OcBinaryData.git
|
# check if we are inside OSX-KVM already
|
||||||
# copy said drivers into EFI/OC/Resources
|
# if not, download OSX-KVM locally
|
||||||
cp -a ./OcBinaryData/Resources/* ./EFI/OC/Resources
|
[ -d ./OpenCore-Catalina/EFI/ ] || {
|
||||||
|
git clone --recurse-submodules --depth 1 https://github.com/kholia/OSX-KVM.git
|
||||||
|
export EFI_FOLDER="./OSX-KVM/${EFI_FOLDER}"
|
||||||
|
}
|
||||||
|
|
||||||
|
[ -d ./resources/OcBinaryData/Resources/ ] || {
|
||||||
|
export RESOURCES_FOLDER="./OSX-KVM/${RESOURCES_FOLDER}"
|
||||||
|
}
|
||||||
|
|
||||||
# EFI Shell commands
|
# EFI Shell commands
|
||||||
touch startup.nsh \
|
touch startup.nsh && echo 'fs0:\EFI\BOOT\BOOTx64.efi' > startup.nsh
|
||||||
&& echo 'fs0:\EFI\BOOT\BOOTx64.efi' > startup.nsh
|
|
||||||
|
cp -ra "${EFI_FOLDER}" .
|
||||||
|
|
||||||
|
mkdir -p ./EFI/OC/Resources
|
||||||
|
|
||||||
|
# copy Apple drivers into EFI/OC/Resources
|
||||||
|
cp -a "${RESOURCES_FOLDER}"/* ./EFI/OC/Resources
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_bootdisk () {
|
generate_bootdisk () {
|
||||||
|
|
|
@ -225,15 +225,30 @@ download_vendor_mac_addresses () {
|
||||||
}
|
}
|
||||||
|
|
||||||
download_qcow_efi_folder () {
|
download_qcow_efi_folder () {
|
||||||
[ -d ./OSX-KVM ] || git clone --depth 1 https://github.com/kholia/OSX-KVM.git
|
|
||||||
cp -ra ./OSX-KVM/OpenCore-Catalina/EFI .
|
export EFI_FOLDER=./OpenCore-Catalina/EFI
|
||||||
mkdir -p ./EFI/OC/Resources
|
export RESOURCES_FOLDER=./resources/OcBinaryData/Resources
|
||||||
# clone some Apple drivers
|
|
||||||
[ -d ./OcBinaryData ] || git clone --depth 1 https://github.com/acidanthera/OcBinaryData.git
|
# check if we are inside OSX-KVM already
|
||||||
# copy said drivers into EFI/OC/Resources
|
# if not, download OSX-KVM locally
|
||||||
cp -a ./OcBinaryData/Resources/* ./EFI/OC/Resources
|
[ -d ./OpenCore-Catalina/EFI/ ] || {
|
||||||
|
git clone --recurse-submodules --depth 1 https://github.com/kholia/OSX-KVM.git
|
||||||
|
export EFI_FOLDER="./OSX-KVM/${EFI_FOLDER}"
|
||||||
|
}
|
||||||
|
|
||||||
|
[ -d ./resources/OcBinaryData/Resources/ ] || {
|
||||||
|
export RESOURCES_FOLDER="./OSX-KVM/${RESOURCES_FOLDER}"
|
||||||
|
}
|
||||||
|
|
||||||
# EFI Shell commands
|
# EFI Shell commands
|
||||||
touch startup.nsh && echo 'fs0:\EFI\BOOT\BOOTx64.efi' > startup.nsh
|
touch startup.nsh && echo 'fs0:\EFI\BOOT\BOOTx64.efi' > startup.nsh
|
||||||
|
|
||||||
|
cp -ra "${EFI_FOLDER}" .
|
||||||
|
|
||||||
|
mkdir -p ./EFI/OC/Resources
|
||||||
|
|
||||||
|
# copy Apple drivers into EFI/OC/Resources
|
||||||
|
cp -a "${RESOURCES_FOLDER}"/* ./EFI/OC/Resources
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue