mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2025-03-09 15:39:58 +00:00
Remove fails from /custom
This commit is contained in:
parent
71df96d112
commit
461ae7f960
6 changed files with 3186 additions and 40 deletions
|
@ -24,17 +24,17 @@ Required options:
|
|||
Optional options:
|
||||
--width <integer> Resolution x axis length in px, default 1920
|
||||
--height <integer> Resolution y axis length in px, default 1080
|
||||
--kernel-args <string> Additional boot-args
|
||||
--input-plist-url <url> Specify an alternative master plist, via URL
|
||||
--master-plist-url <url> Same as above.
|
||||
--custom-plist <filename> Optionally change the input plist.
|
||||
--master-plist <filename> Same as above.
|
||||
--output-bootdisk <filename> Optionally change the bootdisk filename
|
||||
--output-plist <filename> Optionally change the output plist filename
|
||||
--thinkpad Sets ForceOcWriteFlash to true
|
||||
--help, -h, help Display this help and exit
|
||||
|
||||
Placeholders: {{DEVICE_MODEL}}, {{SERIAL}}, {{BOARD_SERIAL}}, {{UUID}},
|
||||
{{ROM}}, {{WIDTH}}, {{HEIGHT}}, {{THINKPAD}}
|
||||
{{ROM}}, {{WIDTH}}, {{HEIGHT}}
|
||||
|
||||
Example:
|
||||
./generate-specific-bootdisk.sh \\
|
||||
|
@ -184,12 +184,6 @@ while (( "$#" )); do
|
|||
shift
|
||||
;;
|
||||
|
||||
|
||||
--thinkpad )
|
||||
export THINKPAD=true
|
||||
shift
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Invalid option ${1}. Running with default values..."
|
||||
shift
|
||||
|
@ -240,13 +234,6 @@ generate_bootdisk () {
|
|||
wget -O "${MASTER_PLIST:=./config-nopicker-custom.plist}" "${MASTER_PLIST_URL}"
|
||||
fi
|
||||
|
||||
if [[ "${THINKPAD}" == true ]]; then
|
||||
echo "Thinkpads: setting ForceOcWriteFlash to true"
|
||||
export THINKPAD=true
|
||||
else
|
||||
export THINKPAD=false
|
||||
fi
|
||||
|
||||
[ -e ./opencore-image-ng.sh ] \
|
||||
|| { wget "${OPENCORE_IMAGE_MAKER_URL}" \
|
||||
&& chmod +x opencore-image-ng.sh ; }
|
||||
|
@ -266,7 +253,7 @@ generate_bootdisk () {
|
|||
-e s/\{\{ROM\}\}/"${ROM}"/g \
|
||||
-e s/\{\{WIDTH\}\}/"${WIDTH:-1920}"/g \
|
||||
-e s/\{\{HEIGHT\}\}/"${HEIGHT:-1080}"/g \
|
||||
-e s/\{\{THINKPAD\}\}/"${THINKPAD:-false}"/g \
|
||||
-e s/\{\{KERNEL_ARGS\}\}/"${KERNEL_ARGS:-}"/g \
|
||||
"${MASTER_PLIST}" > ./tmp.config.plist || exit 1
|
||||
else
|
||||
cat <<EOF && exit 1
|
||||
|
@ -278,8 +265,11 @@ Error: one of the following values is missing:
|
|||
--uuid "${UUID:-MISSING}"
|
||||
--mac-address "${MAC_ADDRESS:-MISSING}"
|
||||
|
||||
Optional:
|
||||
|
||||
--width "${WIDTH:-1920}"
|
||||
--height "${HEIGHT:-1080}"
|
||||
--kernel-args "${KERNEL_ARGS:-}"
|
||||
|
||||
EOF
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue