Open 418910232 opened 4 years ago
@418910232 I am not sure if this is still relevant but please try the following:
Let me know if it still doesn't work and I will try to investigate what's going on. Cheers!
Hi,
The issue ( "Could not recognize "/tmp/osx-image.Mxx/input_mount/BaseSystem.dmg" as an image file" ) as mentioned by @418910232, still occurs, see below :
_Following 2 macOS/OS X installer(s) found. Please Select:
1) macOS 10.13 (High Sierra) 2) macOS 10.14 (High Mojave)
0) Specifiy InstallESD.dmg path
q) Quit
Enter a number or 'q': 1
Enter the output directory (default: /Users/sysman/Desktop):
Attaching InstallESD.dmg...
/dev/disk7 GUID_partition_scheme
/dev/disk7s1 EFI
/dev/disk7s2 Apple_HFS /private/tmp/osx-image.Mxx/input_mount
Creating sparse image...
created: /tmp/osx-image.Mxx/osx.sparseimage
Mounting sparse image...
/dev/disk8 Apple_partition_scheme
/dev/disk8s1 Apple_partition_map
/dev/disk8s2 Apple_HFS /private/tmp/osx-image.Mxx/build_mount
Restoring BaseSystem.dmg...
Validating target...done
Validating source...
Could not recognize "/tmp/osx-image.Mxx/inputmount/BaseSystem.dmg" as an image file
Could not validate source - Invalid argument
Could not mount BaseSystem.dmg.
"disk8" ejected.
"disk7" ejected.
Hi @wolfferine,
It seems like that the script is failing at
asr restore -source "${INPUT_MOUNT}/BaseSystem.dmg" -target "${BUILD_MOUNT}" -noprompt -noverify -erase
At first glance, I think this has something to do with BaseSystem.dmg
file. Could you trying manually deleting the BaseSystem.dmg
file and then running the script again?
I unfortunately do not have a macOS system handy with me to test it out.
Hi, it reports below error:
-e Restoring BaseSystem.dmg... Validating target...done Validating source... Could not recognize "/tmp/osx-image.A8E/input_mount/BaseSystem.dmg" as an image file Could not validate source - Invalid argument -e Could not mount BaseSystem.dmg.
Platform:macOS 10.13.6