Received: from list by lists.gnu.org with archive (Exim 4.71) id 1d7vjE-0006QU-My for mharc-grub-devel@gnu.org; Mon, 08 May 2017 23:22:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7vjC-0006MV-6m for grub-devel@gnu.org; Mon, 08 May 2017 23:22:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7vjB-00034S-0j for grub-devel@gnu.org; Mon, 08 May 2017 23:22:22 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:32845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7vjA-00034A-Oj for grub-devel@gnu.org; Mon, 08 May 2017 23:22:20 -0400 Received: by mail-pf0-x243.google.com with SMTP id b23so12085898pfc.0 for ; Mon, 08 May 2017 20:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to; bh=hdLef/fWwVtmNzEnG49jRXPRPdLq6l69UaUTd6algm4=; b=Pp/4fWRpixgpvCEEvv5nYDSUSi7Q5XMmVhmLRdOfRuJHdsXqQ4Iq/njSMtBg5XGpoR f6tA3y54JRraJxIjSAp5kxyj7mcIEAU8wiRi5zWaZY1HrN9NQVy0SJ2rtTAMpf1WxO7u ZOeAUWSsbRI0GbGxtUyNIDFzAgfwoe6pinIbBZjq/IfzV272zvYrNGBu/jz/AKzLqtyG ktGYGTL5XSLuuUiQThT5jubQY+2JMHP41eqtOpOl8yDgGMGd664/rSLyHCSmu/KFT3Ew DxajTfYViRkHp5FhUm8gNoZ5H7NQklxNivdPdC3bNbACDJK91ktFEvcPafO8zuV4zRzD 5ArQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to; bh=hdLef/fWwVtmNzEnG49jRXPRPdLq6l69UaUTd6algm4=; b=nQiIJ87bnn1+Vqyi7tGRVFSgSsCkE++kQD9ErUPuSAs6aGAsSN2tPlaUS9AMYl9Oc/ ltSOlspHN18lDTB7Wgoq/yj2IxdpDGxdbDJKPSH0hG4eOPGCLjrYl1zrEKD8i+zUgne7 7MCWdD2zYb5CGxTL4S1RqEJwvr9RVJGzwmM+rJJ2rrupD1/omIJx/LdF62lHKB86Zn8r J8sCh0IJb8mCzqIcWF037DWk8TiJ8Pq6PmO3Dy8uzxVJyrH3r9sunvqqmSENV16P90bN 2YFwb93s9uKLKntlqmGpM7fAXWoue2c7e54xq2Fq9nyld4dxvt63iHt9y4kdtYiX+w/e W/lQ== X-Gm-Message-State: AN3rC/5UB4/Hpm7tY+xa9tKvVeNvK3gmad5QEHYsdX06BYaoVqvgdifM MERd2j49exISdA== X-Received: by 10.98.200.23 with SMTP id z23mr34364949pff.18.1494300139555; Mon, 08 May 2017 20:22:19 -0700 (PDT) Received: from ?IPv6:2601:602:9c01:e86a:2ec2:3a19:cd81:76ab? ([2601:602:9c01:e86a:2ec2:3a19:cd81:76ab]) by smtp.googlemail.com with ESMTPSA id e64sm25963620pfl.49.2017.05.08.20.22.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 20:22:18 -0700 (PDT) Subject: Re: [GRUB PARTUUID PATCH V3 0/5] Add PARTUUID detection support From: Nick Vinson To: skenton@ou.edu, grub-devel@gnu.org References: <20170227002055.5829-1-nvinson234@gmail.com> Message-ID: <7a024367-ea2b-2233-3429-5984d6730373@gmail.com> Date: Mon, 8 May 2017 20:22:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <20170227002055.5829-1-nvinson234@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aaG62Oxu0CBV6qrpOmepvf5xUiNuXKENl" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::243 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 03:22:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aaG62Oxu0CBV6qrpOmepvf5xUiNuXKENl Content-Type: multipart/mixed; boundary="ICgoMNAMM2moSqs6NTDcU5orowNUWE4Qt"; protected-headers="v1" From: Nick Vinson To: skenton@ou.edu, grub-devel@gnu.org Message-ID: <7a024367-ea2b-2233-3429-5984d6730373@gmail.com> Subject: Re: [GRUB PARTUUID PATCH V3 0/5] Add PARTUUID detection support References: <20170227002055.5829-1-nvinson234@gmail.com> In-Reply-To: <20170227002055.5829-1-nvinson234@gmail.com> --ICgoMNAMM2moSqs6NTDcU5orowNUWE4Qt Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable I would like to remind grub-devel of this patch set. Since the last time I submitted this, Flex-2.6.4 has been released, so Part 1 of this patch set can now be dropped. Part 5 is optional and can be removed if the development team does not approve of its changes. Finally, this is the version that included Steve Kenton's work as requested by Andrei Borzenkov. Steve Kenton's work is Part #4. If necessary, I can resubmit the patch set with parts 1 and 4 (and 5) removed. Please let me know how you would like me to proceed. Thanks, Nicholas Vinson On 02/26/2017 04:20 PM, Nicholas Vinson wrote: > Changes from Patch v2: > - Added flex-2.6.3 compatibility patch >=20 > - Fixed a GPT partition read error >=20 > - Added Steve Kenton's patch >=20 > - Changed struct grub_part_gpt_type name to struct > grub_part_gpt_part_guid >=20 > - Changed grub_part_gpt_type_t typedef name to grub_part_gpt_guid_t= >=20 > - Added sprint_gpt_guid to Steve Kenton's patch >=20 > - Updated v1 and Steve Kenton's patch to use similar methods when > reading partition GUIDs. >=20 > Changes from Patch v1: > - Added GRUB_ENABLE_LINUX_PARTUUID variable description to grub.tex= i >=20 > - Removed added gpt_part_guid copy logic from > grub_gpt_partition_map_iterate() >=20 > - Removed added NT disk signature copy logic from > grub_partition_msdos_iterate() >=20 > - Removed modifications to partition number increment logic >=20 > - Removed added guid union definition. >=20 > - Added GRUB_ENABLE_LINUX_PARTUUID to grub-mkconfig.in export list >=20 > - Moved PRINT_GPT_PARTTYPE printing logic to print_gpt_guid() > function in grub-probe.c >=20 > - Updated PRINT_GPT_PARTTYPE case to call print_gpt_guid() function= > in grub-probe.c. >=20 > - Created probe_partuuid() function in grub-probe.c >=20 > - Updated print =3D=3D PRINT_PARTUUID check logic in probe() to cal= l > probe_partuuid(). >=20 > - Updated UUID logic in 10_linux.in to enable root=3DPARTUUID featu= re > only if GRUB_DISABLE_LINUX_UUID is not set to true, > and GRUB_DEVICE_PARTUUID is not empty, GRUB_ENABLE_LINUX_PARTUUID= > is set to true. >=20 > Hello, >=20 > This is a request to add PARTUUID detection support grub-probe for MBR > and GPT partition schemes. The Linux kernel supports mounting the root= > filesystem by Linux device name or by the Partition [GU]UID. GRUB's > mkconfig, however, currently only supports specifying the rootfs in the= > kernel command-line by Linux device name unless an initramfs is also > present. When an initramfs is present GRUB's mkconfig will set the > kernel's root parameter value to either the Linux device name or to the= > filesystem [GU]UID. >=20 > Therefore, the only way to protect a Linux system from failing to boot > when its Linux storage device names change is to either manually edit > grub.cfg or /etc/default/grub and append root=3DPARTUUID=3Dxxx to the > command-line or create an initramfs that understands how to mount > devices by filesystem [G]UID and let grub-mkconfig pass the filesystem > [GU]UID to the initramfs. >=20 > The goal of this patch set is to enable root=3DPARTUUID=3Dxxx support i= n > grub-mkconfig, so that users don't have to manually edit > /etc/default/grub or grub.cfg, or create an initramfs for the sole > purpose of having a robust bootloader configuration for Linux. >=20 > Thanks, > Nicholas Vinson >=20 > Nicholas Vinson (4): > Fix flex-2.6.3 incompatbility issue > Add PARTUUID detection support to grub-probe > Update grub script template files > Harmonize patches >=20 > Steve Kenton (1): > Support both EFI and NT Disk Signature for passing to kernel as > root=3DPARTUUID=3D$val >=20 > docs/grub.texi | 13 +++++++ > grub-core/commands/probe.c | 78 ++++++++++++++++++++++++++++++++++++= ++++++ > grub-core/disk/ldm.c | 2 +- > grub-core/partmap/gpt.c | 4 +-- > grub-core/script/yylex.l | 22 +++++++++--- > include/grub/gpt_partition.h | 8 ++--- > util/grub-install.c | 2 +- > util/grub-mkconfig.in | 3 ++ > util/grub-probe.c | 81 ++++++++++++++++++++++++++++++++++++= -------- > util/grub.d/10_linux.in | 13 +++++-- > 10 files changed, 197 insertions(+), 29 deletions(-) >=20 --ICgoMNAMM2moSqs6NTDcU5orowNUWE4Qt-- --aaG62Oxu0CBV6qrpOmepvf5xUiNuXKENl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEczDTDnZxlTLnbyK/I0TYj6JBO78FAlkRNeQACgkQI0TYj6JB O78fbQ//RCHgWoOMYysOPN+ctWoZUwqJMq7+cF2aTo3sqBubmpB/X1UmjQqa39h1 yjjbJb//10It5Is4KIo/3dtxfwdFwfK5pswXuxl26N79yaqtAhyC0j2scDlYPwOc BtFz56TXtkoivUFQDHO4ISCIaQtMUfdJ2uJz3aEtpeXU4fZBBtnzxovnA1uk3LFu 14UXRPbdH2yb86unGZwAJjW6Ns8mFLe2O+3HfF1o+ItW9veiuaBpwccmgzo2GtyI zJEPNxVftnB/mX9z8eF4YYVCvsclRzbukYNMBJ/aMCV50svxEB9YaGxXjoCcUTEh elyQYpyeraZYsFlaSG/BUfmO+E1hM05RbTwa0MoEXMMBb4/TgpdxDsQ1pOWu604N 1e6A0dcY0NTSaYuXGcTwd+9jt5PltZlrviEZSX3ntYlkMOZo3Mh8EkAHAntLXQ7y d3oSECeismFEJwksqPWd5WrYVWn4gAkeAPr0UX0h52XM+malpqpkWYl7aaBm9eZr DgtvtC80otN+Qt7nWKijtZFT+gaaDwKTALIIMHDoVDXQOUFWb4rvzV2iG1yRAMwT a2WCAvbN1XYkZOJWNlNRmKQ4Itx7c++x9kMu+LPcoDpVpXfcahA+RhZz053DIVha fKnRcz3jggo2csPGbO/UoFzDz9OV2hG8G94ZL9Rf+1QAcJc2y74= =wd9J -----END PGP SIGNATURE----- --aaG62Oxu0CBV6qrpOmepvf5xUiNuXKENl--