From owner-freebsd-current@FreeBSD.ORG Thu Jun 14 13:08:56 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F13F106567B for ; Thu, 14 Jun 2012 13:08:56 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9009E8FC18 for ; Thu, 14 Jun 2012 13:08:55 +0000 (UTC) Received: by laai10 with SMTP id i10so1503127laa.13 for ; Thu, 14 Jun 2012 06:08:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=KGBpSOg2GtK5SyKVdXtB5thi8BJTp/Iwo8WEX1BHOkg=; b=BC4NKNB/UHljteRrfArgpzbHRa1icyGyfV62qCKeUqn+q4swD/DZH7vPEHDBkGd3tn K8o2qg3Y4e/ImP717FugTIgNzwSu0Jmbfnn4wnErdESvXTKxysXrJNFBcmdZA2XVzw1y CDuBRUybB9iJLthKxh89bvNYAbha92bLIqza3jJsPFThNbD+eXMFcBwb/3zT2LhzOVXj X+MDJoofPJb8T+BjCLaeLQ9ioWM8vic4iu4KU9i0ha2+WL+TkgSL+yy7yhvxq0e6lDqA nDVlkuUurlIHuvJrQO9wmApVSe9HunIB7ydWvU7l0jAnIdu1RGKZCR+P0uameYczvhxs 7wqQ== MIME-Version: 1.0 Received: by 10.152.148.170 with SMTP id tt10mr1816557lab.48.1339679333868; Thu, 14 Jun 2012 06:08:53 -0700 (PDT) Received: by 10.112.100.68 with HTTP; Thu, 14 Jun 2012 06:08:53 -0700 (PDT) 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> Date: Thu, 14 Jun 2012 15:08:53 +0200 Message-ID: From: Olivier Smedts To: "Andrey V. Elsukov" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnVj7EuWkNwx0G5YyrKkfgZf11/j82cHaxQjdJR0yPLWuClsUD8nlKUHhmWc30SaraTswB8 Cc: Warren Block , Pawel Jakub Dawidek , current@freebsd.org, Andriy Gapon Subject: Re: CFR: backup GPT header support in pmbr and loader(8) (Re: Handbook mirroring section) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2012 13:08:56 -0000 2012/6/14 Andrey V. Elsukov : > 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. --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."