[parted-devel] [PATCH] mac: don't change drivers information

Phil Susi psusi at ubuntu.com
Fri May 4 16:22:37 BST 2018


Sorry for the long delay.  Could you add a NEWS entry and maybe a test?

On 11/2/2015 8:11 PM, Laurent Vivier wrote:
> boot_region_length (or BootSize in the MacOS dialect) is the length
> of the driver code in the driver partition. This length is used
> to compute the checksum of the driver.
> 
> libparted updates this value by setting the whole size of the partition
> (why?) without computing the checksum of the driver using this size.
> 
> As the checksum is wrong, the driver is broken and cannot be loaded
> by the MacOS ROM, and thus the disk is not bootable anymore (bad!).
> 
> Moreover, parted try to update the driver list and makes it disappearing...
> 
> As parted is not able to insert a driver in a partition (is it?),
> the driver is generally inserted by the Apple HD Tool,
> this patch removes the line updating the driver size.
> 
> We also simplify the driver list scan and fix endianess use.
> 
> This has been tested... and it works, now.
> 
> I have updated a bootable disk with parted on x86_64 and
> then been able to boot it (again) on a Mac LC III.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/parted-devel/attachments/20180504/c180811e/attachment.sig>


More information about the parted-devel mailing list