Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2012 15:08:53 +0200
From:      Olivier Smedts <olivier@gid0.org>
To:        "Andrey V. Elsukov" <ae@freebsd.org>
Cc:        Warren Block <wblock@wonkity.com>, Pawel Jakub Dawidek <pjd@freebsd.org>, current@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: CFR: backup GPT header support in pmbr and loader(8) (Re: Handbook mirroring section)
Message-ID:  <CABzXLYPzgBmxGUMhbMSSa7Qxoo4pC4t8%2Bv1t_v6=9HMyP4LGmQ@mail.gmail.com>
In-Reply-To: <4FD9D4DF.9090609@FreeBSD.org>
References:  <4FCF3021.5070802@FreeBSD.org> <20120606.200735.1551208261335301113.hrs@allbsd.org> <4FD05573.70801@FreeBSD.org> <20120610.224813.710171778841273502.hrs@allbsd.org> <4FD9D4DF.9090609@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

2012/6/14 Andrey V. Elsukov <ae@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@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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABzXLYPzgBmxGUMhbMSSa7Qxoo4pC4t8%2Bv1t_v6=9HMyP4LGmQ>