From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1bYdr8-0003hF-G8 for mharc-grub-devel@gnu.org; Sat, 13 Aug 2016 14:40:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYdr6-0003fe-08 for grub-devel@gnu.org; Sat, 13 Aug 2016 14:40:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYdr2-0006VR-Rk for grub-devel@gnu.org; Sat, 13 Aug 2016 14:40:23 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:34699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYdr2-0006Uu-Kz for grub-devel@gnu.org; Sat, 13 Aug 2016 14:40:20 -0400 Received: by mail-wm0-x242.google.com with SMTP id q128so3534460wma.1 for ; Sat, 13 Aug 2016 11:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=o7ySee6hlm6BMYfMUZNkOZIzNPM5GfiCvkaGUHsDl3k=; b=V3j1rqq5qkHMwWXiUZxtNfFitfoJ/0XwyibFxU+gZjpItVVGj6a0evn0qSWPejRlbO YjBuAzYXhqTLdoonvHkv2wFapkbpOs41CGD70pyHTggZc8V7M3bi6BJrs0R280/C1Unh n3lTsAhX0w5aGS/P+dAYSu+DsDIeY0ppM9+0yP+jqTLe9xD032IcNZei3kNY/2UQSIML T2ZACSKq3nFcmUsA1W6M6g3hNXDQvygnX+zc/Xq7js9IBpedF7LKMeYVSLSsg/wk3RNQ roRwmvS6gKpJUEynLFlHZFIOxzuzbbfY16ZkpcyxmtSjPO2NWHNpgz2Nws/8B2x+9cdi 1ZDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=o7ySee6hlm6BMYfMUZNkOZIzNPM5GfiCvkaGUHsDl3k=; b=Kz/MOehTkwMSRBDvnUKrp0bYIwVmfE5W9NcgB818jOOrIsj3Q2FSVwY1h5RUw9iju6 KbydxVL/dnEMJnhKT6q8s7twFT2pVMlPTD7jtVSl3AYeNKgrOoGw5td7KGSVxhzxalkq wTY4eTTHP+rfrjI42vFwxdz2oX++TDVXYJjPtOOBATWLfwX3hW4Nidl6Ah748nNIUzqf Idt1n/KL68F8TmGJQucS8pehqaPkGib9EwB5phWVlQmeWu7ovS+Arq6pLWypEvBNGrpJ pBJegX9RunaUE2OXYEaOwh2PX16lW7BpjJS4fmiSrHhS6oXbxJbNdb2sOfvuq6QHZzEj Yi0w== X-Gm-Message-State: AEkoousK/YDbrTftWXrHVSw2U1at4hSRvRNGDFm434Hln2oBQqjacnanr3pRLoyTnlFt/w== X-Received: by 10.25.212.212 with SMTP id l203mr3341509lfg.2.1471113619748; Sat, 13 Aug 2016 11:40:19 -0700 (PDT) Received: from [192.168.1.43] (ppp109-252-91-231.pppoe.spdop.ru. [109.252.91.231]) by smtp.gmail.com with ESMTPSA id u186sm1912300lff.27.2016.08.13.11.40.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Aug 2016 11:40:18 -0700 (PDT) Subject: Re: Grub module to return partuuid of a device such as (hd0, gpt1) at boot time To: The development of GNU GRUB References: <57AF593D.4090608@gmail.com> Cc: skenton@ou.edu From: Andrei Borzenkov X-Enigmail-Draft-Status: N1110 Message-ID: Date: Sat, 13 Aug 2016 21:40:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <57AF593D.4090608@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::242 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: Sat, 13 Aug 2016 18:40:25 -0000 13.08.2016 20:30, adrian15 пишет: > What's your use case? > Well, this has been requested before and this is supported by Linux kernel. So as long as this does not increase core modules size (i.e. is done outside of partition probing core) I think it will be OK. > adrian15 > > El 12/08/16 a las 16:11, Steve Kenton escribió: >> As far as I can tell there is no search module that can be used to get >> the partuuid at boot time given a grub root device such as (hd0,gtp1). I >> think is would be a useful addition since the resulting partuuid could >> be passed directly to the kernel as root=PARTUUID=xxx and it does not >> seem like it should be hard to do. Am I missing something obvious? And, >> before I jump end the deep end of the pool and try to write it, is >> anyone else working on something similar? >> There was recent patch series that adds support for user-space grub-probe. Would be good if implementation can be shared. I do not want to add any special code to handle partitions UUID to core as this is very special case of really one partition type only, used infrequently and can be entirely handled by usual device iteration. >> Not subscribed, please cc me on reply. >> Not sure why, but whatever reply I chose Thunderbird and Gmail only reply to list.