Basically my goal is to achieve a monolithic system imaging in High Sierra.
Previously, I was able to do this as per the link below (scroll all the way down to the Advanced section)
https://support.apple.com/en-bn/HT202841
Here's what I did:
I upgraded a MacBook from Sierra to High Sierra OS. I then booted it to recovery mode and entered the following commands in Terminal to create the image.
*hdiutil create -srcFolder /Volumes/Macintosh HD/ -size XX -format UDRW -layout GPTSPUD /Volumes/ExternalHDD/tempimage
hdiutil convert -format UDZO -o /Volumes/Macintosh HD/FinalImage /Volumes/ExternalHDD/tempimage.dmg
asr imagescan --source /Volumes/Macintosh HD/FinalImage.dmg*
This successfully worked and I then copied the image to an external hard drive.
However, the problem I'm having is restoring the image created, either on the same machine that I created the image or on another Mac. Note: Both Mac disks are already formatted to AFPS and running High Sierra.
When I enter the below commands, I get an error stating "APFS inverter failed to invert the volume -invalid argument."
asr restore --source /Volumes/ExternalHDD/FinalImage.dmg --target /Volumes/Macintosh HD/ --erase
I have a feeling I may be entering the incorrect target location when trying to do the restore but I may be completely wrong altogether.
Any ideas?


