-
Notifications
You must be signed in to change notification settings - Fork 1
Description
If there is an existing recovery partition that is going to be over written with the recovery disk image, a check should be preformed to ensure that the image will fit in the partition it is being restored to before writing to the disk is attempted.
If there is not an existing recovery partition then a check should be preformed to ensure that the image will fit in the partition of the size that is going to be created.
(size of restored data contained in "$recoveryHDdiskImageFileName" should be less than the size of the recovery partition to be created, which is "$recoverHDBytes" - default of 650002432)
It would be possible to automatically create a larger partition for the recoveryHD disk image based upon the size of the image, but this probably should not happen by default, and it should instead fail since this is not expected and not typical.