Skip to content

Check size of RecoveryHD disk image against Recovery partition size #2

@jgstew

Description

@jgstew

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions