From owner-freebsd-current@freebsd.org Sun Jul 12 15:10:51 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54E969991E7 for ; Sun, 12 Jul 2015 15:10:51 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward3l.mail.yandex.net (forward3l.mail.yandex.net [IPv6:2a02:6b8:0:1819::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 13BF31FE0; Sun, 12 Jul 2015 15:10:50 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp18.mail.yandex.net (smtp18.mail.yandex.net [95.108.252.18]) by forward3l.mail.yandex.net (Yandex) with ESMTP id 5E7181501013; Sun, 12 Jul 2015 18:10:45 +0300 (MSK) Received: from smtp18.mail.yandex.net (localhost [127.0.0.1]) by smtp18.mail.yandex.net (Yandex) with ESMTP id CF35518A0081; Sun, 12 Jul 2015 18:10:44 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:1495::34]) by smtp18.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id P0pZZ7hPEv-AiPCANv7; Sun, 12 Jul 2015 18:10:44 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1436713844; bh=9X0ZqAvqfUjehBTvQTaJGTwW1HSq3FnBXMRK2G7fd1Q=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type; b=cE8YDNjxQGGHer+gSeexShPNWGoqmqWuS+nwf/IVbW2EcJT8LZeJ9WQgp2P7pEWvU 4VKDXLfkRVSsHwIPNjry5O0Hb1hNRak040XJIXFy8qPLtZRPUU1jTkZ71IKwtcUJJR lpGDyLMGq42Z71S4okj1AK1/FcmTaodma6Sg5OvM= Authentication-Results: smtp18.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <55A2835F.1030004@yandex.ru> Date: Sun, 12 Jul 2015 18:10:23 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Allan Jude , freebsd-current@freebsd.org Subject: Re: Lenovo BIOS boot fix References: <55A1FFD5.7080008@freebsd.org> <55A2030B.7010405@freebsd.org> In-Reply-To: <55A2030B.7010405@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="L1fPbPswsckqbCFAD1x4s3aCPtmGfqwmD" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Sun, 12 Jul 2015 15:10:51 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --L1fPbPswsckqbCFAD1x4s3aCPtmGfqwmD Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12.07.2015 09:02, Allan Jude wrote: > I forgot to include the link to the patch as well: >=20 > http://www.allanjude.com/bsd/lenovofix_gpart.patch >=20 > I will most likely make this patch optional, behind a flag to the 'gpar= t > create -s gpt' command, to avoid potentially breaking existing working > systems, but if using offset 1 works on all other hardware, having it a= s > the default would be nice. >=20 > Another option would be to make a separate standalone program to modify= > the pMBR for Lenovo machines, rather than modifying gpart. Hi, I think Lenovo's BIOS just think that your partition layout is MBR and uses legacy boot. if (MBR_partition[0].type =3D=3D 0xee && gpt_is_ok()) { UEFI_boot(); } else { MBR_boot(); } --=20 WBR, Andrey V. Elsukov --L1fPbPswsckqbCFAD1x4s3aCPtmGfqwmD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVooNfAAoJEAHF6gQQyKF6jxYH/i3kHDXiyz8NwlNvYupkTjrM CNTqECUZdbDDkV/kRc+D9/5xA/7UNLT1kA5wxgnHryz7+oBIXR4lXXjjNh2CKX4d qMD+FWAk2XEhDoN/qW10/HwOAdYuKrWlCeo2aek6WqzsY0ixD4M4apqB/t9lsr/D aNn/Tdp5mijD7XRDLRMk688sF95DvnMGNtJn+sYBDSb6GnuVkHaXf5pkSSWA5QBv GQdqwQtaXrmd7Mo55XB6LYmCKoUNEDa4rOsKJsxv5bpkoxeXgT35o1Ts8II7zvaI E55M3FFL/bOc2uNG2XZ/8rZQ2ABW2sK4YabMOIuhiZ1NNMsXwp9zpFeJgmPcpt0= =qoIk -----END PGP SIGNATURE----- --L1fPbPswsckqbCFAD1x4s3aCPtmGfqwmD--