Received: from list by lists.gnu.org with archive (Exim 4.71) id 1bWDKa-0006da-9K for mharc-grub-devel@gnu.org; Sat, 06 Aug 2016 21:56:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWDKT-0006dE-LN for grub-devel@gnu.org; Sat, 06 Aug 2016 21:56:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWDKS-0003gP-D9 for grub-devel@gnu.org; Sat, 06 Aug 2016 21:56:41 -0400 Received: from mail-pa0-x243.google.com ([2607:f8b0:400e:c03::243]:35076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWDKS-0003gH-59 for grub-devel@gnu.org; Sat, 06 Aug 2016 21:56:40 -0400 Received: by mail-pa0-x243.google.com with SMTP id cf3so21537053pad.2 for ; Sat, 06 Aug 2016 18:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=PxX45lRDeSm8QVnf8lRv+rSCZTytPcAm1tjz1v1uqTo=; b=Z2AeHfXMp1gB7X1Hd9DvuHvtmI4rCpkX3Xz3IdUvVl0BHeJzpLBeR2H9teL4jAJMrP PpM0gqOqCku19LVHnWNjNf3QDQr+A1z2RtMgct0AP11HJuSCgVziijcsDGKcETCrdbgo reM11Qs94fqIAl6kWI96dJZMZ30P7lX7tNCdDm8wXzq9hI6a8UkePut86mySr5lNND52 8QfeO+mezauj9KdhdGpGj48LEHFNyC5y/PAfdoJxZtbaziPSjoj7LNVMBIj7ZLDDvd/U ssZYH+twe9UbjWg2JMme3rLQvOavnXtdoBDOXogIkOpcrVzYZy3UmUNzp0vWKeew58Id bPog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PxX45lRDeSm8QVnf8lRv+rSCZTytPcAm1tjz1v1uqTo=; b=GfUtHI7m39l+XhoKIidItfemnXMdkf4bADRfJeZuWfQ2vQ52rQXnXHRO8oQC+yYiYl GmaHXKRP7A6PPrNZ/RSxH4QPJng0RCTyqRutpcLbW6pHZYT8RibFU4ezihtfT5iTYvHR mQzAIVOI0KMzfEBSyjJA4YzDjfhmHTX4slnBKTzrGIPT2ZVphrcyA61oPFrcOeCt4Sgi Mhdyt/jsul1KdRQSv6Ie8WuQzFqiBiA1UTTJK1Gqi0kidAuhKdJwJB3D87wzjDlEWI2S +4UU+2iCDPM4dx+MooQx6D8z5LPJybS/8yoEf1bJur0wrnLoqdJ0nemf5qV6Gu5a6ElJ pPoQ== X-Gm-Message-State: AEkoout8YOObVrn7Rj8KlLS7B91KVv/6PyKAaPRlJYLIeU/Obk/v8eyh2j2IPiHSldL+5g== X-Received: by 10.66.158.104 with SMTP id wt8mr148609709pab.64.1470534998985; Sat, 06 Aug 2016 18:56:38 -0700 (PDT) Received: from localhost.localdomain ([2601:602:9c00:cf41:a15c:1ca:cdf1:57a3]) by smtp.googlemail.com with ESMTPSA id 15sm37802061pfz.36.2016.08.06.18.56.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Aug 2016 18:56:38 -0700 (PDT) From: Nicholas Vinson To: grub-devel@gnu.org Cc: Nicholas Vinson Subject: [GRUB PARTUUID PATCH V2 0/2] Add PARTUUID detection support Date: Sat, 6 Aug 2016 18:56:30 -0700 Message-Id: <20160807015632.32562-1-nvinson234@gmail.com> X-Mailer: git-send-email 2.9.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::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: Sun, 07 Aug 2016 01:56:43 -0000 Changes from Patch v1: - Added GRUB_ENABLE_LINUX_PARTUUID variable description to grub.texi - Removed added gpt_part_guid copy logic from grub_gpt_partition_map_iterate() - Removed added NT disk signature copy logic from grub_partition_msdos_iterate() - Removed modifications to partition number increment logic - Removed added guid union definition. - Added GRUB_ENABLE_LINUX_PARTUUID to grub-mkconfig.in export list - Moved PRINT_GPT_PARTTYPE printing logic to print_gpt_guid() function in grub-probe.c - Updated PRINT_GPT_PARTTYPE case to call print_gpt_guid() function in grub-probe.c. - Created probe_partuuid() function in grub-probe.c - Updated print == PRINT_PARTUUID check logic in probe() to call probe_partuuid(). - Updated UUID logic in 10_linux.in to enable root=PARTUUID feature 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. Hello, 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. 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=PARTUUID=xxx 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. The goal of this patch set is to enable root=PARTUUID=xxx support in 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. Thanks, Nicholas Vinson Nicholas Vinson (2): Add PARTUUID detection support to grub-probe Update grub script template files docs/grub.texi | 13 ++++++++ util/grub-mkconfig.in | 3 ++ util/grub-probe.c | 83 ++++++++++++++++++++++++++++++++++++++++--------- util/grub.d/10_linux.in | 13 ++++++-- 4 files changed, 95 insertions(+), 17 deletions(-) -- 2.9.2