mirror of
https://github.com/foxlet/macOS-Simple-KVM
synced 2024-11-22 03:03:06 +00:00
[CONF] fixes from shellcheck
This commit is contained in:
parent
b41c6d6db4
commit
6baf520cc9
5 changed files with 20 additions and 20 deletions
4
basic.sh
4
basic.sh
|
@ -14,8 +14,8 @@ qemu-system-x86_64 \
|
||||||
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
|
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
|
||||||
-device isa-applesmc,osk="$OSK" \
|
-device isa-applesmc,osk="$OSK" \
|
||||||
-smbios type=2 \
|
-smbios type=2 \
|
||||||
-drive if=pflash,format=raw,readonly,file=$OVMF/OVMF_CODE.fd \
|
-drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \
|
||||||
-drive if=pflash,format=raw,file=$OVMF/OVMF_VARS-1024x768.fd \
|
-drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \
|
||||||
-vga qxl \
|
-vga qxl \
|
||||||
-device ich9-intel-hda -device hda-output \
|
-device ich9-intel-hda -device hda-output \
|
||||||
-usb -device usb-kbd -device usb-mouse \
|
-usb -device usb-kbd -device usb-mouse \
|
||||||
|
|
|
@ -36,8 +36,8 @@ qemu-system-x86_64 \
|
||||||
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
|
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
|
||||||
-device isa-applesmc,osk="$OSK" \
|
-device isa-applesmc,osk="$OSK" \
|
||||||
-smbios type=2 \
|
-smbios type=2 \
|
||||||
-drive if=pflash,format=raw,readonly,file=$OVMF/OVMF_CODE.fd \
|
-drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \
|
||||||
-drive if=pflash,format=raw,file=$OVMF/OVMF_VARS-1024x768.fd \
|
-drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \
|
||||||
-vga qxl \
|
-vga qxl \
|
||||||
-usb -device usb-kbd -device usb-tablet \
|
-usb -device usb-kbd -device usb-tablet \
|
||||||
-netdev user,id=net0 \
|
-netdev user,id=net0 \
|
||||||
|
@ -49,4 +49,4 @@ qemu-system-x86_64 \
|
||||||
-device ide-hd,bus=sata.3,drive=InstallMedia \
|
-device ide-hd,bus=sata.3,drive=InstallMedia \
|
||||||
-drive id=SystemDisk,if=none,file="${SYSTEM_DISK}" \
|
-drive id=SystemDisk,if=none,file="${SYSTEM_DISK}" \
|
||||||
-device ide-hd,bus=sata.4,drive=SystemDisk \
|
-device ide-hd,bus=sata.4,drive=SystemDisk \
|
||||||
${MOREARGS[@]}
|
"${MOREARGS[@]}"
|
||||||
|
|
22
jumpstart.sh
22
jumpstart.sh
|
@ -16,24 +16,24 @@ print_usage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
error() {
|
error() {
|
||||||
local error_message="$@"
|
local error_message="$*"
|
||||||
echo "${error_message}" 1>&2;
|
echo "${error_message}" 1>&2;
|
||||||
}
|
}
|
||||||
|
|
||||||
argument="$1"
|
argument="$1"
|
||||||
case $argument in
|
case $argument in
|
||||||
-s|--high-sierra)
|
|
||||||
$TOOLS/FetchMacOS/fetch.sh -p 091-95155 -c PublicRelease13 || exit 1;
|
|
||||||
;;
|
|
||||||
-m|--mojave)
|
|
||||||
$TOOLS/FetchMacOS/fetch.sh -l -c PublicRelease14 || exit 1;
|
|
||||||
;;
|
|
||||||
-c|--catalina|*)
|
|
||||||
$TOOLS/FetchMacOS/fetch.sh -l -c DeveloperSeed || exit 1;
|
|
||||||
;;
|
|
||||||
-h|--help)
|
-h|--help)
|
||||||
print_usage
|
print_usage
|
||||||
;;
|
;;
|
||||||
|
-s|--high-sierra)
|
||||||
|
"$TOOLS/FetchMacOS/fetch.sh" -p 091-95155 -c PublicRelease13 || exit 1;
|
||||||
|
;;
|
||||||
|
-m|--mojave)
|
||||||
|
"$TOOLS/FetchMacOS/fetch.sh" -l -c PublicRelease14 || exit 1;
|
||||||
|
;;
|
||||||
|
-c|--catalina|*)
|
||||||
|
"$TOOLS/FetchMacOS/fetch.sh" -l -c DeveloperSeed || exit 1;
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
$TOOLS/dmg2img $TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg $PWD/BaseSystem.img
|
"$TOOLS/dmg2img" "$TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg" "$PWD/BaseSystem.img"
|
||||||
|
|
4
make.sh
4
make.sh
|
@ -4,7 +4,7 @@
|
||||||
# by Foxlet <foxlet@furcode.co>
|
# by Foxlet <foxlet@furcode.co>
|
||||||
|
|
||||||
VMDIR=$PWD
|
VMDIR=$PWD
|
||||||
MACHINE=$(qemu-system-x86_64 --machine help | grep q35 | cut -d" " -f1 | egrep -oe ".*-[0-9.]+" | sort -rV | head -1)
|
MACHINE="$(qemu-system-x86_64 --machine help | grep q35 | cut -d" " -f1 | grep -Eoe ".*-[0-9.]+" | sort -rV | head -1)"
|
||||||
OUT="template.xml"
|
OUT="template.xml"
|
||||||
|
|
||||||
print_usage() {
|
print_usage() {
|
||||||
|
@ -16,7 +16,7 @@ print_usage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
error() {
|
error() {
|
||||||
local error_message="$@"
|
local error_message="$*"
|
||||||
echo "${error_message}" 1>&2;
|
echo "${error_message}" 1>&2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,8 @@ qemu-system-x86_64 \
|
||||||
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
|
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
|
||||||
-device isa-applesmc,osk="$OSK" \
|
-device isa-applesmc,osk="$OSK" \
|
||||||
-smbios type=2 \
|
-smbios type=2 \
|
||||||
-drive if=pflash,format=raw,readonly,file=$OVMF/OVMF_CODE.fd \
|
-drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \
|
||||||
-drive if=pflash,format=raw,file=$OVMF/OVMF_VARS-1024x768.fd \
|
-drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \
|
||||||
-vga std \
|
-vga std \
|
||||||
-device ich9-intel-hda -device hda-output \
|
-device ich9-intel-hda -device hda-output \
|
||||||
-usb -device usb-kbd -device usb-mouse \
|
-usb -device usb-kbd -device usb-mouse \
|
||||||
|
|
Loading…
Reference in a new issue