From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XWChB-0003PY-65 for mharc-grub-devel@gnu.org; Mon, 22 Sep 2014 19:07:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWCh9-0003PH-4m for grub-devel@gnu.org; Mon, 22 Sep 2014 19:07:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWCh8-00038w-1u for grub-devel@gnu.org; Mon, 22 Sep 2014 19:06:59 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:53126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWCh7-00034w-S9 for grub-devel@gnu.org; Mon, 22 Sep 2014 19:06:57 -0400 Received: by mail-wi0-f177.google.com with SMTP id q5so4000545wiv.10 for ; Mon, 22 Sep 2014 16:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=et9KtJKArSbXAAHWUuvlDfDFr+RsMkw9fVpap3MQUNE=; b=WFF/RMIGcblsMlpd+0W/IMpKyif7TfWQB9gaX7KLfI2lQXyPTvl9ecD4cV0yLXyzCB vX4kdlAGJ2DluJMAa4W150Qq2d2oOoRDAee2l2yVZfIspCf9K1n+08JS1EHbHnYbscbr IFuV6tbs4G/JPAqu1UCJXgXz6A44EPqOK3puiT8VdoDulYkjOtzAs1yWu/vl6DYhmFsC 8f7R6Nir/+vp6I6jDiY5z2BUf1SHwyGS43putajwDwlf8Xvji6URMIkUQVn22UaHqXKB vwg32cKLUr4O3AdM2n969oxswqzxlukuG2zh/ruehDdrwrDDIZfDa7kCpXbofO56+rpT Z5Dw== X-Received: by 10.180.89.230 with SMTP id br6mr18781260wib.16.1411427212158; Mon, 22 Sep 2014 16:06:52 -0700 (PDT) Received: from ?IPv6:2a02:1205:501d:9350:863a:4bff:fe50:abc4? ([2a02:1205:501d:9350:863a:4bff:fe50:abc4]) by mx.google.com with ESMTPSA id q3sm208606wia.14.2014.09.22.16.06.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Sep 2014 16:06:51 -0700 (PDT) Message-ID: <5420AB89.9070204@gmail.com> Date: Tue, 23 Sep 2014 01:06:49 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [RFC PATCH] Add new partition type API and convert GPT type checks. References: <1411412346-4003-1-git-send-email-michael.marineau@coreos.com> <20140922231957.18ebb350@opensuse.site> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mTPrJiWuJn0l7jharoPjgBrwXa0noaBQe" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::231 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 23:07:00 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mTPrJiWuJn0l7jharoPjgBrwXa0noaBQe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 22.09.2014 22:03, Michael Marineau wrote: > that is what I need to make use of and copying the code to re-read the > type field yet again felt silly. My final goal is actually a module > that will search for two partitions of the same type and select > between them based on some other metadata. Since searching by > partition type is already a common task in the grub code base > providing an API to do so seemed like a good starting point. Others > will likely find extending this to support label and uuid more useful. > For example with GPT the Linux kernel can use > "root=3DPARTUUID=3D" directly, unlike LABEL=3D or UUID=3D whi= ch must > be implemented in an initrd. Using partition type has proven to be unrelaiable in the past and grub2 uses as little of it as possible. Why can't your goals be achieved with FS UUIDs? --mTPrJiWuJn0l7jharoPjgBrwXa0noaBQe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iF4EAREKAAYFAlQgq4kACgkQmBXlbbo5nOvFzQD/QeEmHQ2tZ32wozSTo9pHjIm6 eyh2xfN+PFIav2vL1k0A/2MbM0qctKrCtJCPlnt4Nz+uoDPtcAmlhvDo5JhEjHy7 =RSU6 -----END PGP SIGNATURE----- --mTPrJiWuJn0l7jharoPjgBrwXa0noaBQe--