CFR: backup GPT header support in pmbr and loader(8) (Re: Handbook mirroring section)

Olivier Smedts olivier at gid0.org
Thu Jun 14 13:08:56 UTC 2012


2012/6/14 Andrey V. Elsukov <ae at freebsd.org>:
> Also, our PMBR image doesn't contain any partition entries and
> writing it to the disk with dd(1) makes the system unbootable.
> What you think if we will add one partition entry to the PMBR image?
> I modified your patch (the last hunk added) and it is attached.

Isn't it gpart(8)'s job to write the proper boot code from the pmbr
image without damaging the partition table ?

ie. "gpart bootcode -b /boot/pmbr ada0" instead of using dd.


-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier at gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."


More information about the freebsd-current mailing list