I have been using the same script for several years now to partition off a Restore partition and to asr restore a restore partition into our build. Since Sierra, its not longer working. What I am getting is an error that reads "Could not change the partition type for /dev/disk0s3 - operation not permitted". Even running the commands manually at the prompt with root permissions results in the same thing. If I run the same script on El Cap and lower, no issues. I am not finding that any information online about changes to the asr command. Has anyone run into this one yet, and if so, were you able to find a workaround?
Thanks in advance for any help.