Don't overwrite "${vm_name}_configure_nvram.txt"

"${vm_name}_configure_nvram.txt" was overwritten (hence removing the comment in its first line which was created by line 991 of macos-guest-virtualbox.sh).
This commit is contained in:
macosx12345
2021-11-12 15:03:56 +01:00
committed by GitHub
parent 1ce5c9319f
commit 5a9c88f0e1
+1 -1
View File
@@ -997,7 +997,7 @@ mkdir -p "/Volumes/'"${vm_name}"'/tmp/mount_efi" && \
mount_msdos /dev/${disks[0]}s1 "/Volumes/'"${vm_name}"'/tmp/mount_efi" && \
cp -r "/Volumes/'"${macOS_release_name:0:5}-files"'/ESP/"* "/Volumes/'"${vm_name}"'/tmp/mount_efi/" && \
installer_pid=$(ps | grep startosinstall | grep -v grep | cut -d '"'"' '"'"' -f 3) && \
kill -SIGUSR1 ${installer_pid}' > "${vm_name}_configure_nvram.txt"
kill -SIGUSR1 ${installer_pid}' >> "${vm_name}_configure_nvram.txt"
# Find background process PID, then
# start the installer, send SIGUSR1 to concurrent bash script,
# the other script copies files to EFI system partition,