Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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