grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Allow user to choose between path or fs-label instead of UUI


From: Pete Appleton
Subject: Re: [PATCH] Allow user to choose between path or fs-label instead of UUID
Date: Sun, 16 Sep 2012 21:51:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120910 Thunderbird/15.0.1


On 16/09/12 18:40, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
On 16.09.2012 18:57, Pete Appleton wrote:

Hi all,

The file attached is intended to allow a Linux user to easily specify
whether GRUB2 should use the traditional device path (/dev/sda1) or the
filesystem label instead of the default UUID scheme.  This functionality
is currently supported by GRUB2 itself but the peripheral files
(grub-mkconfig, 10-linux etc) don't directly support it, requiring the
user to edit the distribution-supplied files on their installation with
the potential for consequent upgrade conflicts.

This patch adds support for a new environment variable
GRUB_DEVICE_IDENTIFICATION taking as value one of {uuid, label, path};
if not set or invalid then it defaults to uuid so that the current
semantics are respected.  If set to label then the 'search' clause and
root=XXX kernel parameter are written using file system label syntax as
opposed to the current single behaviour of device path if
GRUB_DISABLE_LINUX_UUID=true

In this patch the same option has effect on both how device is passed to
kernel and how it's identified internally. These 2 parts should be kept
separate.

Update attached which splits the option into GRUB_DEVICE_IDENTIFICATION (used by 10-linux for the root FS) and GRUB_SEARCH_METHOD, used by grub-mkconfig to generate the search clause.

Pete Appleton

Attachment: linux_fslabel_support.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]