From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1bErI3-0008W5-FA for mharc-grub-devel@gnu.org; Mon, 20 Jun 2016 00:58:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEoAJ-0002VI-S3 for grub-devel@gnu.org; Sun, 19 Jun 2016 21:38:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEoAH-0007M6-QJ for grub-devel@gnu.org; Sun, 19 Jun 2016 21:38:14 -0400 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:32936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEoAH-0007Ks-JL for grub-devel@gnu.org; Sun, 19 Jun 2016 21:38:13 -0400 Received: by mail-pf0-x242.google.com with SMTP id c74so10385217pfb.0 for ; Sun, 19 Jun 2016 18:38:13 -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=Eqs/IDvkWdqUpcPqCsZ8kA91CXO5tv06VzCWtjPQ4yo=; b=SVuUS7ranBnL8f52wPW/ho8dAyREzZw7ctEKE2E4N4WZ8zq6zFB2iIMcflM/ey5fpQ J3Ra13TFuHla6RvPgOC4RD2H3vnEfF5+m47b4Kxc4GmLkvri+mkYWKfCpRqf7rVKv0Af cGNRRNyyCzRrUnI4Wsp4DGfEf6z+thHttfNu/6fUOJ64wdhjl810m3QWKQM5C2642SSZ cvqxh21nup29STcyZ3WTbtpHMlN+qSa8car0E65Pnm3gFaHIAn3oRXcCBLX/T+jTKCBD Njb8izTuprt/VcAO5Lnv7rVdbpmjRJGzOddCM1e/xm4VWmRmGpmydwllCrDyVBHoQcu/ TZsA== 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=Eqs/IDvkWdqUpcPqCsZ8kA91CXO5tv06VzCWtjPQ4yo=; b=F8XCNapLVyCky6Df9J5Owb/SgVWkNzl4DezViiy9XAAn7IDX6tPYX6MpXIVRRkKnO0 nkzXyEV5NA5oeOAOttWYpVZM9UjT0edSBT58uITBj3s6JzF5YdrwlxpMYNh5UvcyXytM FZa3S4HeC35YlaOx4amJV7TOuih5qxDoMo1pwkZfOZqLLGjmKfuTyn5pPZwd+qs9oVdt EkVF3jRBl8coJ6+dm5ntf0694YSHk9Mse1IpsDz4BX/+tSuWjaP7U3WhfHtlaVqxJYxy S1zIYDkPEpGFC4R4Hj1CteeRJw2xtEHlYNDE5HuLsWDVyKUwnNeGcKrN3WkbQbHT1NOd kX8w== X-Gm-Message-State: ALyK8tKCQqeEk7owwicMtLngi/RWhrNRuV0yuXATesPJbJZI6b6iS7NUt5ZQmpEDRj363w== X-Received: by 10.98.43.7 with SMTP id r7mr18866364pfr.65.1466386692377; Sun, 19 Jun 2016 18:38:12 -0700 (PDT) Received: from localhost.localdomain ([2601:602:9c00:cf41:a15c:1ca:cdf1:57a3]) by smtp.googlemail.com with ESMTPSA id 81sm62391443pfo.74.2016.06.19.18.38.11 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 19 Jun 2016 18:38:11 -0700 (PDT) From: Nicholas Vinson To: grub-devel@gnu.org Cc: Nicholas Vinson Subject: [GRUB PARTUUID PATCH 0/2] GRUB: Add PARTUUID Detection Support Date: Sun, 19 Jun 2016 18:37:46 -0700 Message-Id: X-Mailer: git-send-email 2.9.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::242 X-Mailman-Approved-At: Mon, 20 Jun 2016 00:58:26 -0400 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: Mon, 20 Jun 2016 01:38:16 -0000 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 grub-core/partmap/gpt.c | 2 ++ grub-core/partmap/msdos.c | 12 ++++++++-- include/grub/partition.h | 9 +++++++- util/grub-mkconfig.in | 2 ++ util/grub-probe.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++ util/grub.d/10_linux.in | 11 +++++++-- 6 files changed, 89 insertions(+), 5 deletions(-) -- 2.9.0