From 5a9c88f0e12922c55a21bb19762d3363355d99e7 Mon Sep 17 00:00:00 2001 From: macosx12345 Date: Fri, 12 Nov 2021 15:03:56 +0100 Subject: [PATCH] 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). --- macos-guest-virtualbox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index 2c740a6..a8debb5 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -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,